You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm install -g @xdevplatform/xurl fails on Windows because install.js shells out to the Unix unzip command, which doesn't exist on Windows.
Environment
OS: Windows 11
Node: v24.13.1
npm: v11.8.0
xurl version: v1.0.3
Steps to Reproduce
On a Windows machine (no WSL), run:
npm install -g @xdevplatform/xurl
The postinstall script (install.js) attempts to extract the downloaded binary using unzip, which is a Unix utility not available on Windows.
Installation fails.
Expected Behavior
install.js should use a cross-platform extraction method (e.g., Node's built-in zlib, or a library like adm-zip / decompress) so installation works on Windows, macOS, and Linux.
Workaround
Download the pre-built Windows binary directly from the GitHub Releases page and place it on PATH manually. The xurl CLI itself works perfectly on Windows once the binary is in place — only the npm install script is broken.
Suggested Fix
Replace the unzip shell call in install.js with a cross-platform alternative. Options:
Fixed in #78 (v1.2.0): npm/install.js now extracts the Windows .zip with PowerShell's Expand-Archive instead of the Unix unzip command, so npm install -g @xdevplatform/xurl works on Windows.
Activity
fix: install + whoami bugs (#68, #56, #41)
santiagomed commentedon Jun 29, 2026
Fixed in #78 (v1.2.0):
npm/install.jsnow extracts the Windows .zip with PowerShell's Expand-Archive instead of the Unixunzipcommand, sonpm install -g @xdevplatform/xurlworks on Windows.feat: xurl mcp + token, headless OAuth2, auth/UX hardening (v1.2.0) (#78