hokaccha / nodebrew

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

install and install-binary don't work #57

Open chamini2 opened 8 years ago

chamini2 commented 8 years ago

I installed nodebrew with brew install nodebrew.

$ nodebrew install-binary v5.11.x
Fetching: https://nodejs.org/dist/v5.11.0/node-v5.11.0-darwin-x64.tar.gz
Warning: Failed to create the file
Warning: /Users/matteo/.nodebrew/src/v5.11.0/node-v5.11.0-darwin-x64.tar.gz:
Warning: No such file or directory

curl: (23) Failed writing body (0 != 941)
download failed: https://nodejs.org/dist/v5.11.0/node-v5.11.0-darwin-x64.tar.gz
hokaccha commented 8 years ago

I don't maintain homebrew's nodebrew. Please try installation with below.

https://github.com/hokaccha/nodebrew#install

rhysd commented 7 years ago

@hokaccha Referring to https://github.com/Homebrew/homebrew-core/pull/13881, the error occurs because of lack of .nodebrew/src. Can you fix this?

mecca831 commented 7 years ago

To unblock people before a fix is in place, just run:

mkdir -p ~/.nodebrew/src

And the install should work.

mecca831 commented 7 years ago

I think homebrew is to blame. The formula actually tries to create the folders by calling nodebrew setup_dirs but it's not working. See https://github.com/Homebrew/homebrew-core/blob/master/Formula/nodebrew.rb#L12