goodslkp.blogg.se

Npm install a specific version
Npm install a specific version









npm install a specific version

Copy the npmrc file back into %ProgramFiles%\nodejs\node_modules\npm.

npm install a specific version

This will tell the new npm where the global installed packages are. Go into %ProgramFiles%\nodejs\node_modules\npm and copy the file named npmrc in the new npm folder, which should be %appdata%\npm\node_modules\npm.Npm install you installed npm with the node.js installer, after doing one of the previous steps, do the following. Then open cmd.exe as an administrator and run the following commands: Option 3: Navigate to %ProgramFiles%\nodejs\node_modules\npm and copy the npmrcfile to another folder or the desktop.

npm install a specific version

Remember that you'll need to restart cmd.exe (and potentially restart Windows) when you make changes to PATH or how npm is installed. Option 1: edit your Windows installation's PATH to put %appdata%\npm before %ProgramFiles%\nodejs.

npm install a specific version

On your PATH, it will always use the version of npm installed with node instead of the version of npm you installed using npm -g install get around this, you can do one of the following: Npm's globally installed packages (including, potentially, npm itself) are stored separately in a user-specific directory (which is currently In the meantime, the preceding process works fine for me on a Windows 10, 64 bit.By default, npm is installed alongside node in This appears to be due to a bug that the author of nvm-windows plans to fix. Navigate to \v6.10.3, rename node.exe to node64.exe, then execute nvm uninstall 6.10.3 from the command line again. Uninstalling node v6.10.3.Error removing node v6.10.3 Now, determine the version of npm you want to use.įinal step: run npm-windows-upgrade -npm-version -npm-path "" For error "Error removing node " when trying nvm uninstall Usually at C:\Users\\AppData\Roaming\nvm\. Then, locate the nvm-windows installation path for the version of node whose npm you wish to upgrade. You'll need to manually specify the nvm-windows' installation path for the version of node whose associated npm you wish to upgrade.įirst, install npm-windows-upgrade.You'll need to upgrade npm once for each version of node installed by nvm-windows with which you wish to use the different version of npm.Node usually ships with an older version of npm. Do these from powershell or bash running as admin.











Npm install a specific version