I need to run multiple versions of NodeJS as many others do. I have removed all versions of Node from my computer and installed NVM Version 1.2.1.
When I run nvm install 8 this is the output:
C:\> nvm install 8
Downloading node.js version 8.17.0 (64-bit)...
Complete
Downloading npm...
Creating C:\Users\<username>\AppData\Local\Temp\nvm-install-3482925554\temp
Downloading npm version 6.13.4... Complete
Installing npm v6.13.4...
error installing 8.17.0: open C:\Users\<username>\AppData\Local\Temp\nvm-npm-1343300179\npm-v6.13.4.zip: The system cannot find the file specified.
C:\>
and the install fails. This only seems to happen with older versions of Node. I was able to install the latest version without issues.
I have checked for the missing file, and it is located in the first directory that NVM created, \AppData\Local\Temp\nvm-install-3482925554\temp, not the directory it is looking in, C:\Users\<username>\AppData\Local\Temp\nvm-npm-1343300179.
I tried copying the npm-v6.13.4.zip file to the other directory, but every time I run the install it creates a new directory nvm-npm-SomeRandomNumber I also tried installing NVM version 1.2.0 and it gives the same result.