当前位置:网站首页>Use NVM to dynamically adjust the nodejs version to solve the problem that the project cannot be run and packaged because the node version is too high or too low
Use NVM to dynamically adjust the nodejs version to solve the problem that the project cannot be run and packaged because the node version is too high or too low
2022-06-12 08:51:00 【Fall in love with_ Underline】
download
Download channel 1
Download channel 2
Download channel 3
uninstall nodejs
If you've installed nodejs You need to uninstall , If not, skip this step
open cmd, Input where node, Get the installation path , Then delete all the folders
install nvm
Will download nvm.exe Files installed , Just go to the next step , The installation position can be decided by yourself , On the path No Chinese , Space
Check the installation results
cmd Interface , function nvm v, The following interface appears, that is, the installation is successful 
View all loadable nodejs edition
cmd Interface , function nvm list available
Load any version
cmd Interface , function nvm install 14.19.0, On behalf of loading 14.19.0 edition
View all loaded versions
cmd Interface , function nvm ls
Enable the specified version
cmd Interface , function nvm use 14.15.0, On behalf of local installation nodejs-14.15.0, edition
Check out the local node Is the version installed successfully
cmd Interface , function node -v and npm -v, test node.js And corresponding npm Is the installation successful 
Can be used later nvm use + edition , Switch at any time nodejs Version of
If node Installation successful npm Installation failed
Uninstall the current version , Just reload it , Maybe the network is not good , It didn't download successfully
cmd Interface , function nvm uninstall + edition uninstall
Or this article It may help you
边栏推荐
- Why should enterprises implement MES? What are the specific operating procedures?
- Engineers learn music theory (II) scale and tendency
- API处理Android安全距离
- Construction of memcached cache service under Linux:
- [advanced pointer I] character array & array pointer & pointer array
- MES helps enterprises to transform intelligently and improve the transparency of enterprise production
- Dynamic segment tree leetcode six hundred and ninety-nine
- [compilation principle] understand BNF
- Record the first step pit of date type
- JVM学习笔记:垃圾回收机制
猜你喜欢

【字符集九】gbk拷贝到Unicode会乱码?

【数据存储】浮点型数据在内存中的存储

Webrtc series - mobile terminal hardware coding supports simulcast

根据有效期显示距离当前还剩多少天有效期

Error: what if the folder cannot be deleted when it is opened in another program

Priority issues

【 pointeur avancé Ⅲ】 mise en œuvre de la fonction de tri rapide qsort& fonction de rappel en langage C

【无标题】Task3 多路召回

This article is required for the popularization of super complete MES system knowledge

Union selector
随机推荐
JVM学习笔记:三 本地方法接口、执行引擎
[dynamic memory management] malloc & calloc and realloc and written test questions and flexible array
判断对象是否为空
[GUI development] browsing function implementation model of image processing software
第八章-数据处理的两个基本问题
Audio and video engineer (Preliminary) (I) basic concepts of audio and video
Inheritance of row height
Install iptables services and open ports
根据有效期显示距离当前还剩多少天有效期
Background fixing effect
Close asymmetric key
[new planning]
Background location case II
Audio and video related links
[advanced pointer I] character array & array pointer & pointer array
Analysis of 43 cases of MATLAB neural network: Chapter 8 prediction of GRNN Network - Freight Volume Prediction Based on generalized regression neural network
Implementing architecture caching in MySQL under redis server environment
2022.6.11-----leetcode.926
【进阶指针二】数组传参&指针传参&函数指针&函数指针数组&回调函数
域名映射到指定IP