当前位置:网站首页>NVM installation tutorial

NVM installation tutorial

2022-06-26 13:21:00 Red 1027

nvm Official website

https://github.com/coreybutler/nvm-windows/releases
 Insert picture description here
setup After downloading, the environment variables will be configured according to the download address
Download and find NVM Folder
 Insert picture description here
Add these two lines ,taobao Download faster , Otherwise, the download may fail

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

First nvm list See if it works

If not, check the environment variable configuration first , Both the system and the user need to configure

Right click this computer -> attribute  Insert picture description here

 Insert picture description here
 Insert picture description here

 Insert picture description here
Inquire about path These two need to be configured %NVM_HOME% %NVM_SYMLINK%
 Insert picture description here
Run after confirming that they are all configured .

Such as nvm normal node -v When it is not an internal or external command

Query environment variables NVM_SYMLINK Initial default c The disk path most likely does not exist nodejs function node-v Will report a mistake ,

Can find nvm Folder , Then add a... In the folder nodejs Folder ,NVM_SYMLINK Corresponding to the existing nodejs Folder

Reopen cmd Command box run

 Insert picture description here

原网站

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