[ ] Windows Server 2016
[ ] My Windows installation is non-English.
Not sure if this is a nvm or Node issue, I noticed this issue when downloading node 10.10.0 and node 10.11.0. did not have this issue with 10.9.0 or below.
but npm.cmd
tries the call node.exe but the exe file name is node64.exe. So either had to rename the node exe file, or update the npm.cmd
line.
SET "NODE_EXE=%~dp0\node.exe"
to
SET "NODE_EXE=%~dp0\node64.exe"
just a heads up if anyone gets a cmd error of npm doesnt exist.
Was this a new install? NVM4W rewrites node64.exe to node.exe for you, so this shouldn't be an issue. This can be solved with nvm use 10.10.0 64
, but I'd like to know more about the setup to see if we an figure out why the rename didn't occur.
Yes, it was a new installs, come to think of it, i might have ran nvm install
and nvm use
prior to fixing the other issue of changing path variables to short (non-spaced).That may have caused nvm not to properly locate and make the change.
I ran the following, without the arch option.
nvm install 10.10.0
nvm use 10.10.0
Which led to having node64.exe within the folder.
It sounds like the environment may be a little unusual and is the most likely cause of the issue. However; I think this is a good edge case for illustrating the need for validation. I'm going to mark this as an enhancement request.
Note to self: NVM4W should check for alternative architecture and at least warn the user if node.exe does not exist and either node32.exe or node64.exe exist. When possible, auto-correct.
I have had the same problem on Win 7 Pro with nvm 1.1.6. nvm was reporting that cannot download npm. I found that the npm repository was moved. I have upgraded to nvm 1.1.7 and the problem was fixed.
I wasn't able to download the npm neither because it was moved from https://github.com/npm/cli/archive/.
I am on 1.1.7 and Windows 10 Node 8.
Same here.
Windows 10 pro 64bits.
EDIT: Same with Nodejs 10.13.0 LTS
same issue https://github.com/npm/npm/releases/tag/v6.4.1
- invalid url. It on https://github.com/npm/cli/releases/tag/v6.4.1
now
Fix is in version 1.1.7 https://github.com/coreybutler/nvm-windows/blob/1.1.7/src/nvm/web/web.go#L21
Thank you @coreybutler
Ran into same issue on 1.1.7. Opted to hard link node.exe to node64.exe rather than edit the script.
Possible other causes: I moved the installation directory from Appdata/Roaming/nvm to c:\Program Filesnodejs\ then did nvm install latest
Most helpful comment
I wasn't able to download the npm neither because it was moved from https://github.com/npm/cli/archive/.
I am on 1.1.7 and Windows 10 Node 8.