hokaccha / nodebrew

Node.js version manager
MIT License
1.06k stars 66 forks source link

Warning: failed to create the file. #48

Closed mikebarnhardt closed 8 years ago

mikebarnhardt commented 8 years ago

I've added the $PATH and $NODEBREW_ROOT variable to my ~/.zshrc config and when I use the command nodebrew install-binary 0.12.x it fails:

fetch: http://nodejs.org/dist/v0.12.7/node-v0.12.7-darwin-x64.tar.gz
Warning: Failed to create the file
Warning: /usr/local/var/nodebrew/src/v0.12.7/node-v0.12.7-darwin-x64.tar.gz:
Warning: No such file or directory

curl: (23) Failed writing body (0 != 3599)
download faild: http://nodejs.org/dist/v0.12.7/node-v0.12.7-darwin-x64.tar.gz

If I echo $PATH I get /Users/Mike/.nodebrew/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin and echo $NODEBREW_ROOT gets /usr/local/var/nodebrew.

Installed with brew: brew install nodebrew. sudo gives the same results.

mikebarnhardt commented 8 years ago

After manually creating the directory: mkdir ~/.nodebrew/src the commands work fine.

(Also changed $NODEBREW_ROOT=$HOME/.nodebrew, but that didn't solve the issue.)

hokaccha commented 8 years ago

:+1:

flash548 commented 2 years ago

still had to do this for the latest nodebrew on macOS (installed using homebrew), then nodebrew install commands work