79527714

Date: 2025-03-22 16:13:54
Score: 1
Natty:
Report link

I had a similar error when installing the old version of nodejs 0.12.2. I need this version to work with the old version of WebOS 3.4 installed on my TV Before that, I already had nodejs versions 23.10.0 and 16.20.2 installed I downloaded the node-v0.12.2 Win-x64.msi installer from here https://nodejs.org/en/blog/release/v0.12.2 and installed it in the default folder (let's say it was the C:\nvm4w\nodejs_0.12.2 folder. It doesn't matter now) After installation, the following files were in the folder: Installed Nodejs 0.12.2 files I checked, the nodejs version 0.12.2 was not listed anywhere. I searched and found that versions 23.10.0 and 16.20.2 are present in the folders of the same name C:\Users\KS\AppData\Local\nvm. By analogy, I created a folder v0.12.2 and dropped the contents obtained during the installation of node-v0.12.2 Win-x64.msi into it The result was as follows: Folder with all installed versions of Nodejs When unsuccessfully attempting to install Nodejs 0.12.2 with the command nvm install 0.12.2 the file npm-v2.7.4.zip was downloaded to the folder C:\Users\KS\AppData\Local\Temp\nvm-install-3885601035\temp But for some reason the installer was looking for this file in the folder C:\Users\KS\AppData\Local\Temp\nvm-npm-2168612958. There was such a folder, but it was empty Error "Cannot find the npm file" I took the file npm-v2.7.4.zip, unpacked it into a separate folder and ran the command nvm use 0.12.2 (this is mandatory!) In the folder C:\nvm4w\nodejs (the appearance of which changes depending on the version of nodejs used) I created the node_modules folder, in it I created the npm folder, and in it (that is, in the folder C:\nvm4w\nodejs\node_modules\npm) I put all the contents of the npm-v2.7.4.zip archive Now, when using Nodejs version 0.12.2, everything is the same as when using Nodejs version 16.20.2 and 23.10.0 Installed Nodejs versions Accordingly, the command is executed For Nodejs 0.12.2 npm 2.74 is used

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: kservice