Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install node using nvm on windows

Tags:

node.js

I am trying to install multiple versions of nodejs on my machine by first installing nvm for windows and then using nvm command to install the specific versions of nodejs from the command prompts

When i try this

nvm install 7.3.0 64

I get error

Could not retrieve https://nodejs.org/dist/latest/SHASUMS256.txt

Could somebody tell me why am i getting this error. I tried the above command using administrator command prompt as well the command prompt in my visual studio but the same result

like image 559
Tom Avatar asked Jun 01 '18 12:06

Tom


2 Answers

Likely it means you are behind a proxy server.

To tell nvm about it you need to run the command:

nvm proxy [url of your proxy server]

For example

nvm proxy http://example.com:8080

For docs on that command and other nvm for windows commands see https://github.com/coreybutler/nvm-windows#usage

like image 88
rooby Avatar answered Nov 13 '22 13:11

rooby


I got the same error that could not retrieve https://nodejs.org/dist/latest/SHASUMS256.txt during installing a different version of nodeJS.

nvm install latest worked fine when I disconnected from VPN and open PowerShell in admin mode.

like image 29
Ramanuj Avatar answered Nov 13 '22 13:11

Ramanuj