-
-
Notifications
You must be signed in to change notification settings - Fork 738
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
n latest gives Error: invalid version #517
Comments
https://nodejs.org/en/download/releases/ (You could try |
root@242d9dedbea0:/# n lts Error: invalid version root@242d9dedbea0:/# n latest Error: invalid version |
Ok, still have a problem! |
I have an issue with https (proxy issue). Only http works: root@f58cdde2b2d5:/# curl https://nodejs.org/dist/ Index of /dist/../ latest/ 04-Jul-2018 18:08 - latest-argon/ 30-Mar-2018 03:32 - latest-boron/ 12-Jun-2018 23:26 - latest-carbon/ 12-Jun-2018 23:26 - |
Issues #430 talks about setting Otherwise there is an environment variable to override the node mirror, but then of course you are using http and not https. Can try with a one-off command like:
|
nice, that works! root@703ee01208b7:/# NODE_MIRROR=http://nodejs.org/dist/ n --lts root@703ee01208b7:/# NODE_MIRROR=http://nodejs.org/dist/ n 7.2.1
######################################################################## 100.0% |
The env
|
But it doesn't work for me, what can i do?
Error: invalid version 10.13.0 root@localhost:~# |
|
Thanks for your answer, I have removed the node of old version and installed one of version number 8.11.1 Now I want to run this cmd: but it give me this: Do you have such a problem? |
Those two warnings are normal when installing into a new npm module just created by Are you still having problems with |
Thanks for your help, there is no problems now. |
An explanation for people getting "invalid version" for lts or latest, but able to install node 8 and below.
Node 8 is still being supported, and a convenience for installing the newest version is:
|
This issue has not had any activity in over six months. It isn't likely to get acted on due to this report. Feel free to open a new issue if it comes up again, with new information and renewed interest. Thank you for your contributions. |
I am getting this exact same issue on an Ubuntu Virtual Machine. I tried curl and it is not proxy related. My uname -a outputs 686 because I donot want to install or need to use 64bit. |
Issue Template:
Describe issue including what OS you are using
docker
root@642b8f51967f:/# uname -a
Linux 642b8f51967f 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 GNU/Linux
Describe what version of N you have
root@642b8f51967f:/# n --version
2.1.12
Describe how you installed N
RUN npm install --verbose -g n
Steps to reproduce issue 1.2.3
root@642b8f51967f:/# n
Error: no installed version
Describe the results you received
root@642b8f51967f:/# n 7.1.2
Error: invalid version 7.1.2
Describe the results you expected
install and use version 7.1.2
What version of npm you are using
root@642b8f51967f:/# npm --version
6.1.0
Additional information you deem important (e.g. issue happens only occasionally):
root@642b8f51967f:/# which n
/usr/bin/n
root@642b8f51967f:/# node -v
v10.6.0
root@642b8f51967f:/# curl --version
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
root@642b8f51967f:/# which curl
/usr/bin/curl
root@642b8f51967f:/# ls -l /usr/local/n/versions
total 0
drwxr-sr-x. 2 root staff 6 Jul 7 15:18 io
drwxr-sr-x. 2 root staff 6 Jul 7 15:18 node
root@642b8f51967f:/# ls -l /usr/local/n/versions/node
total 0
root@642b8f51967f:/# ls -l /usr/local/n/versions/io
total 0
(paste your output here)
The text was updated successfully, but these errors were encountered: