Article directory
⭐Preface
Hello everyone, I am yma16, and I will share the nvm installation configuration in this issue.
About nvm:
"Node Version Manager", which is a tool for managing Node.js versions.
Previous articles
node_windows environment variable configuration
node_npm release package
linux_ configuration node
⭐Download nvm
Download address: https://github.com/coreybutler/nvm-windows/releases
⭐Install nvm
nvm path
custom path nvm
node path
Custom node path
Check version nvm -v
View the node version list of nvm (nvm list available)
$ nvm list available
Configure the mirror library mirror of nvm
default
https://nodejs.org/dist/
npm mirror switching
$ nvm npm_mirror https://npm.taobao.org/mirrors/npm/
Node image switching used by nvm
$ nvm node_mirror https://npm.taobao.org/mirrors/node/
Select the node version to install (node install version)
Here I choose version 16.18.1
$ nvm install 16.18.1
Uninstall the specified version node
$ nvm uninstall version
Use the specified node version (nvm use)
$ nvm use version
I used 16.18.1 here
⭐node environment variable configuration
Create two directories node_global and node_cache in the node directory
Configure the NODE_PATH system environment variable
NODE_PATH oriented node_modules
Configure the node_cache environment variable
$ node config set prefix "D:\Program Files (x86)\node\node_global"
Configure the node_global environment variable
$ node config set cahce "D:\Program Files (x86)\node\node_cahce"
⭐ end
Thank you for reading, and please point out if there are any deficiencies!