vercel: Fails install on Windows
npm i now -g
On windows, yields
C:\Users\User\test>npm i now -g
C:\Program Files\nodejs\now -> C:\Program Files\nodejs\node_modules\now\download\dist\now
> now@7.3.0 postinstall C:\Program Files\nodejs\node_modules\now
> node download/install.js
> For the source code, check out: https://github.com/zeit/now-cli
> Downloading now CLI 7.3.0 [====================] 100%
{ Error: ENOENT: no such file or directory, open 'C:\Users\User\AppData\Roaming\npm\now'
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.readFileSync (fs.js:509:33)
at _callee2$ (C:\ProgramData\nvm\v6.11.1\node_modules\now\download\dist\download.js:2138:249)
at tryCatch (C:\ProgramData\nvm\v6.11.1\node_modules\now\download\dist\download.js:2328:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\ProgramData\nvm\v6.11.1\node_modules\now\download\dist\download.js:2566:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\ProgramData\nvm\v6.11.1\node_modules\now\download\dist\download.js:2380:21)
at step (C:\ProgramData\nvm\v6.11.1\node_modules\now\download\dist\download.js:3023:30)
at C:\ProgramData\nvm\v6.11.1\node_modules\now\download\dist\download.js:3034:13
at process._tickCallback (internal/process/next_tick.js:109:7)
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\Users\\User\\AppData\\Roaming\\npm\\now' }
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "now" "-g"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! now@7.3.0 postinstall: `node download/install.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the now@7.3.0 postinstall script 'node download/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the now package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node download/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs now
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls now
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\User\test\npm-debug.log
Steps to reproduce:
- virtualbox image from microsoft.
- Install Chocolatey
choco install nvm -ynvm install 6.11.1nvm use 6.11.1npm i now -g
Fails to install 7.3.0
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 7
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Fix for #729 (#745) * use 'which' to detect the path of global cmd * fix downloading apline binaries — committed to vercel/vercel by igorklopov 7 years ago
- [now-next] Add subdir prefix to "src" for dynamic routes (#745) * Update dynamic routes to have prefix in src and not in dest for dev * Make sure prefix isn't inside of capture group for dynamic... — committed to vercel/vercel by ijjk 5 years ago
No, it is not fixed. And i am still going to fix it. Let me keep it opened 🙂
Please try again with
now@7.4.0