-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 0.12 - Binary download failed, trying source #655
Comments
What OS and shell are you using? The binary and source installs both work for me on my Mac in bash. |
It happens to me too, on ubuntu 14.04. I have nvm installed with node 0.11.14 (unstable) running fine, when I try to
|
@jvillasante What's the output of |
Well, I just did |
ah ha, that actually might be a clue as to what's going on. There's an explicit line in the code that does |
I am using OSX 10.9.5. I originally tried deleting ~/.nvm and reinstalling nvm, but that didn't fix the problem. Then, I let the build from source run after getting that message and now it seems to be working and I can successfully install 0.12 from binary. So the fail to install from binary happened twice, but third time (and on) the charm. |
I'm getting this intermittently. Interestingly, on 0.23.3 it works but I get 'command node cannot be found' |
Had the same problem.
Made the missing ('/home/wumsdi/.nvm/versions') directory myself - seems to work. |
@wumsdi What OS and shell? |
@ljharb Mint 17, bash Oh, sorry. Should have updated first. 0.23.3 works as expected. |
@rob-mccann On what step do you get that error? Can you paste some output? Also, which OS and shell? |
I run https://gist.github.com/rob-mccann/d881855fdc49e47bc831 FYI - I'm relatively new to Docker so I'm not sure if I'm the cause here. |
@rob-mccann Why is $NVM_DIR set to |
I set it to that manually - I'm on Ubuntu so no homebrew - where's better? |
@rob-mccann ok, as long as you set it manually it's cool :-) Default though is In your gist, after "=> Close and reopen your terminal to start using nvm" i see an installation progress bar - what starts that installation? |
Not too sure what you're after but here's the command that sets it all off.
|
Building from source works FYI but takes forever :) Using 0.23.3 gets the following output: ie, nvm seems to work but it then can't find node |
Did the install paths change from |
To be clear: what's fixed it for me:
|
@rob-mccann Yes, for node 0.12 and later. Have you hardcoded the node path somewhere? |
Can't get it to work either, getting checksum empty. I'm using crouton to mount a trusty ubuntu 14.04: (trusty)allov@localhost:~$ nvm install v0.12.0
######################################################################## 100.0%
Checksums empty
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Binary download failed, trying source. |
@Allov |
@ljharb mm, I'm on my local wan through my chromebook. I'm not using a proxy. How would I know if this is a nodejs.org mirror? |
@Allov if you haven't set it up manually then it's likely not. Does installing other |
@ljharb I tried to install other version as well, no luck. I ended up compiling the node js source and installed it this way. |
@Allov If you're unable to install any binary versions then I'd love to work with you to figure it out - hop onto #nvm on freenode sometime and we'll work through it :-) |
Yup! Latest release:
0.22.0:
|
On a vagrant bash file for the following OS (config.vm.box="ubuntu/trusty64"). I had to export HOME and NVM_DIR as "/home/vagrant" and "/home/vagrant/.nvm" then source "/home/vagrant/.nvm/nvm.sh" and then thanks to @wumsdi added mkdir /home/vagrant/.nvm/versions and was able to install 0.12.3 |
I'm mystified how that last step would be necessary. |
@ljharb turns out this caused a permission issues, as you mentioned if you export HOME or NVM_DIR you would need to handle permissions on your own. I went back to the drawing board, and added privileged false to my vagrant file, so that my bash runs as "vagrant" user, when one does vagrant up.
This all works with the following bash;
The only issue for me is that if you vagrant ssh, and the run "node" it does not find it, until I run the command;
Also finding out that this does not install node globally might be a drawback. So I'm also looking into https://github.com/xtuple/nvm. |
|
@ljharb so you would suggest not to use https://github.com/xtuple/nvm. I'm unfamiliar with terms pre-shell, and per-subshell. |
Correct. Per-shell means, only a shell session in which |
@ljharb thank you. So if I remove
So in order to get the ability to multi-version node globally I would need to get |
Yes, Can you confirm the permissions on |
@ljharb what are the benefits of Currently when using the
Without the
With the error I do have the following directory:
but no versions folder. |
@magbicaleman I'd ask what the benefits are of Also, what version of |
Can you try upgrading to the latest |
@ljharb |
Yes - |
@ljharb indeed so adding So this is what my current bash looks like;
|
Looks great to me! You can also do |
@ljharb thank you for all the help, extremely helpful and quick. Much appreciated! Maybe this is beyond of topic, but are npm install -g packages bound to the version being used by nvm? So for example if I go from 0.12.3 with npm install gulp -g, and switch to 0.13.3 I would need to reinstall gulp globally? |
Yes, which is a good thing, since modules would likely break if shared across |
@ljharb true that. Pretty slick feature, so if I upgrade from 0.12.3 and want my global packages I'll just;
|
Also, a shortcut is |
Got the same error! nvm: install v0.12.7 failed!I then created 'versions' folder inside .nvm folder in my home dir! |
@userAbhishek What does |
"mkdir is /bin/mkdir" |
This one keeps mystifying me - if |
@ljharb hmm it should, but it doesn't! Luckily I got a pretty neat fix for that error! |
I just created the versions directory and worked for me after that.
|
Yup creating a |
I was trying to execute |
It looks like the node 0.12 binary install needs to be updated....
################################################################## 100.0%
mv: rename /Users/me/.nvm/bin/node-v0.12.0-darwin-x64 to /Users/me/.nvm/versions/v0.12.0: No such file or directory
Binary download failed, trying source.
################################################################## 100.0%
The text was updated successfully, but these errors were encountered: