-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
sudo n stable Error:: invalid version #492
Comments
I was not able to reproduce your issue (also on Mac), but suggest you try lts instead of stable.
|
sure, but |
Can I see a pic ?
… On Apr 25, 2018, at 10:20 AM, waffledonkey ***@***.***> wrote:
sure, but -- just lists the current version of each whereas OP is trying to install (stable). I get the same problem; n stable, n latest, n lts, n 8.11.1 all come back with "invalid version"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes same problem, stable or lts or latest all give invalid version. |
@waffledonkey thanks. I had assumed Someone with the problem, does |
@JohnRGee |
Possibly related info, there were changes in [edit] I don't think curl changes were the issue |
I'm having this issue as well on macOS Sierra 10.12.6 |
I didn't get that far into it, but the methods like
and here's the equivalent with the variables substituted
if you dump that straight into a terminal it comes back as expected; 8.11.1 but called as it is presently "version" is empty, as shown by before throwing an invalid version -- because the next method calls a method in a similar way without a What's baffling to me is that |
I get this exact same error on CentOS |
I had same issue running sudo n stable to update node. To fix this I used Node Version Manager (NVM). Just run the command: nvm install 10.0.3 . or any desired version number you want to install |
I can’t get that installed. Seems like a lot of my problems are proxy related too. |
I had get the same wrong in Win10 |
|
Installing curl locally somehow fixed the issue for me... 😆 |
@vyzaldysanchez what curl version are you using? |
Same error for me on Ubuntu 16.04 LTS.
|
We can hopefully find the underlying issue @brandoncordell but will take some investigation. Interesting that you can look up the lts version, but not download it.
|
@byrenx cannot recall at the moment, I've changed my linux laptop so I'm not using that env anymore, sorry I couldn't be of more help here... |
Seeing this problem on one machine but not the other Will post the requested versions in a follow up. Just in case posting here fails. |
on both machines as root I did no proxy. The working machine is on wifi and the nonworking is plugged into my router. Don't think that should matter but it is a difference. working machineMirror? uname -a curl does not seem to be installed root@mosqito:/home/howard# npm cache clean -f Node Red Startup Non workinguname -a Mirror? root@silver:/home/howard# npm cache clean -f |
@a3v0 I think your problem is the second machine is a 32-bit architecture (i686). However, node 8 is still being supported, and has 32-bit builds, so you can hopefully use that. e.g.
or explicit version:
|
Thanks for the rapid reply. I will give it a shot. What I should do is replace that machine. |
I installed n using |
@yathamravali sudo n lts (Pull Request #467 makes stable an alias for lts to fix this problem, but has not been released yet.) |
I recommend opening a new issue for further problems, as this issue now covers multiple different problems and hard to tell which ones have been solved. |
Hi @JohnRGee, here I have the same problem, I can't fetch |
@Francesco-Rizzi |
For proxy issues causing "invalid version", see #482 If you are still stuck seeing the "invalid version" message, please open a new issue for your situation. This thread is pretty messy and I don't want to add further to it! The long term plans to improve this are improve the error messages for failure conditions, or write a FAQ... |
Prerelease available via |
Much improved error messages in v6: https://github.com/tj/n/releases/tag/v6.0.0 |
Issue Template:
Describe issue including what OS you are using
I'm using MacOS Sierra_10.12.6
Describe what version of N you have
n --version output: 2.1.7
Describe how you installed N
npm install -g n
Steps to reproduce issue
Describe the results you received
Error: invalid version
Describe the results you expected
I was supposed to see the stable version being pulled from source
What version of npm you are using
npm --version output: 3.10.10
Additional information you deem important (e.g. issue happens only occasionally):
which n:
/usr/local/bin/n
node -v:
v6.11.2
which curl:
/usr/bin/curl
curl --version
:curl 7.54.0 (x86_64-apple-darwin16.0) libcurl/7.54.0 SecureTransport zlib/1.2.8 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets
The text was updated successfully, but these errors were encountered: