Skip to content
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

use n install latest version false and i can't use old node version #287

Closed
haozxuan opened this issue Jun 25, 2015 · 9 comments
Closed

Comments

@haozxuan
Copy link

old version : v0.12.4
new version: v0.12.5

today i use n install latest node version, but false,some info is
[root@Test_Node002 20150624]# n latest

 install : node-v0.12.5
   mkdir : /usr/local/n/versions/node/0.12.5
   fetch : https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x64.tar.gz
                                                                       1.3%

curl: (18) transfer closed with 9624176 bytes remaining to read

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
cp: cannot stat /usr/local/n/versions/node/0.12.5/lib': No such file or directory cp: cannot stat/usr/local/n/versions/node/0.12.5/share': No such file or directory
installed :

[root@Test_Node002 20150624]# nrm --help
Segmentation fault
[root@Test_Node002 20150624]# cd /
[root@Test_Node002 /]# nrm --help
Segmentation fault
[root@Test_Node002 /]# node -v
Segmentation fault
[root@Test_Node002 /]# pm2 -v
Segmentation fault
someone can help me :|

@haozxuan
Copy link
Author

Segmentation fault ???

@maxrimue
Copy link
Contributor

It looks like curl wasn't able to fetch the whole file, just a part of it, and since that part wasn't complete there were several errors during installation, and running Node.js/npm probably fails because of that too. I'm not sure why your curl wasn't able to fetch the whole file, this is not caused by n, just by your curl. Any idea?

@haozxuan
Copy link
Author

my network may be bad,but all my node,npm,and pm2 eg, not work.
I recommend If you do not download completely, you do not modify the local. Lest my bag did not work before. Now I can only re-install node.

@maxrimue
Copy link
Contributor

@haozxuan What happens when you try
curl -o node-v0.12.5-linux https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x64.tar.gz?
Does it download completely and correctly, or does it fail too?

@haozxuan
Copy link
Author

not fail,
[root@Test_Node002 tmp]# curl -o node-v0.12.5-linux https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9526k 100 9526k 0 0 34812 0 0:04:40 0:04:40 --:--:-- 29522
While spending some time,but download completely .

@maxrimue
Copy link
Contributor

@haozxuan Have you ever since opening this issue tried downloading Node.js with n again?

@haozxuan
Copy link
Author

i will try again, now is download 50%,

@haozxuan
Copy link
Author

ok,download completely
[root@Test_Node002 tmp]# n latest

 install : node-v0.12.5
   mkdir : /usr/local/n/versions/node/0.12.5
   fetch : https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x64.tar.gz

installed : v0.12.5
and now is work well. but i already re-install node

@maxrimue
Copy link
Contributor

Anyway, we now know this was a temporary error, probably a time-out. I'll close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants