当前位置:网站首页>NVM download, installation and use

NVM download, installation and use

2022-06-24 17:28:00 Dandelion

download

Useful commands to download , Download the source code , I downloaded the source code
Address :https://github.com/coreybutler/nvm-windows/releases
perhaps :
open GitHub, Search for nvm, I downloaded it nvm-windows,
 Insert picture description here
Then click the version download , The latest thing I have here is 1.1.9
 Insert picture description here
 Insert picture description here

install

Found downloaded nvm package , decompression , Double click installation
 Insert picture description here
 Insert picture description here
 Insert picture description here

First installation directory : The default installation directory is not used here , Change the installation directory to D:\system\nvm
Readers can choose the installation directory
The second installation directory : add to node.js Installation directory
Be careful :
Here we use “ add to node.js Installation directory ” In fact, my statement is not very accurate , The exact term should be configuration node.js Installation directory
By default C:\Program Files\nodejs Catalog ,C:\Program Files\nodejs So is the catalog node.js Default installation directory
If the reader is installing nvm Already installed before node.js, And modified node.js Installation directory , Then the directory here should be changed to node.js Installation directory
If the reader is installing nvm It's not installed before node.js, Then the directory here can be defined by itself
Reference resources :https://www.cnblogs.com/jing-tian/p/11225123.html

 Insert picture description here

installation is complete

Use

Set Taobao image

node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

copy The order of

nvm install stable ##  Install the latest stable version  node
nvm install <version> ##  Install the specified version 
nvm uninstall <version> ##  Delete the installed specified version 
nvm use <version> ##  Switch to the specified version node
nvm ls ##  List all installed versions 
nvm ls-remote ##  Lists the versions of all remote servers 
nvm current ##  Show current version 
nvm alias <name> <version> ##  Add aliases to different version numbers 
nvm unalias <name> ##  Delete the defined alias 
nvm reinstall-packages <version> ##  In current version  node  In the environment , again     Global installation of the specified version number  npm  package 
nvm alias default [node Version number ] ## Set the default version 

 Insert picture description here

Download the latest version

 Insert picture description here
At first, there was a mistake , I have no good solution after Baidu , It was reinstalled nvm, That's fine

Turn on use

Report errors : The screenshot is as follows
 Insert picture description here
solve : Start using a version with administrator privileges
 Insert picture description here
perhaps :
 Insert picture description here
result
 Insert picture description here

原网站

版权声明
本文为[Dandelion]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211555195610.html

随机推荐