-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
not able to install node 14 with nvm #3284
Comments
Where's the |
I have the same problem, can you help? |
@raylancordeiro please provide everything the issue template asks for |
@ljharb if you pay attention, @Vishnu94833 already shared the |
@lucastorress if you pay attention, you’ll notice that those were edited in after i asked, and then the OP didn’t comment to notify me that it was there. We have a code of conduct and that kind of hostile response won’t be tolerated. |
@ljharb Don't get me wrong, I also found your response hostile at first, but the idea here is to understand and help. The problem here on my machine is the same as reported by @Vishnu94833, the same version and the same operating system. This only happens in NodeJS version 14, with command I took a look at another issue, which indicates downgrading the version to 0.39.1, as 0.39.7 has this error. Temporary solution found here: #3148 (comment) |
What the error message shows is that it's requiring an older version of python than you have on your system. I have no idea why downgrading nvm would have any impact on that. |
@ljharb , Thanks for the suggestion. but I want the latest version of Python as another dependency for Kubectl. Downgrading to an older version is clearly mentioned in the logs that I can see. I just wanted to know if there's a fix for my problem. I forgot to mention you once I edited the template. I thought you'd be notified. Thanks! |
It's not really an option; the python version required to build node is determined by node, and that's the only way to get it to work. |
If you have installed nvm using homebrew, then remove it
also
then install nvm 0.39.1 using the script and then install nvm install 14, it works. I had the same issue and managed to fix that using this version.
|
Worked flawlessly with v0.39.1 - I've had this same issue with a few other versions too, I guess I'll keep using 0.39.1 for a good while in the future while I still need node v14 |
Lots of things won't work properly if you're on anything but the latest, so 0.39.1 isn't a great choice. Be on 0.39.7, and provide the info requested in the issue template, so I can fix it. I don't know what would be different in those versions that would make node 14 uninstallable, and I can install node 14 just fine on latest nvm. |
(different path to brew if you're on Intel) Doing this meant It would avoid a lot of issues if the node developers simply provided an ARM binary for Darwin on Node 14.20.0, but I guess that's not going to happen now. Slightly off-topic: Does anyone know how I can create my own version of https://nodejs.org/dist/v14.20.0/ with my own node-v14.20.0-darwin-arm64.tar.gz with and get nvm to use it? It looks like it's signed. Then I'd only have to go through this once, upload the built binary somewhere and not need the above hacks when setting up a new machine. |
@keeely you can host it somewhere and set the nodejs.org mirror env var to point to it, and nvm will look there instead. |
Thanks! Yes, index.tab is needed, and then just the file in the right directory.
It gives a warning about the missing checksum but then goes on to install it.
|
You should provide the checksum in the index.tab file :-) then there won't be a warning. |
If you're looking for a precompiled link, you might find https://nodejs.raccoon-tw.dev/ useful
|
Operating system and version:
nvm debug
output:nvm ls
output:How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
What steps did you perform?
nvm install 14
What happened?
What did you expect to happen?
I wanted Node version 14.21.3
Is there anything in any of your profile files that modifies the
PATH
?export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?The text was updated successfully, but these errors were encountered: