In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "how to upgrade nodejs", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to upgrade nodejs" this article.
Upgrade nodejs methods: 1, the use of n modules, the use of "n stable" command can be upgraded to the latest stable version, "n latest" command can be upgraded to the latest version; 2, the use of NVM tools, the use of "nvm install lastest" can be upgraded to the latest version.
The operating environment of this tutorial: windows7 system, nodejs 14.15.4, DELL G3 computer.
Method 1: upgrade nodejs with n
What's more powerful is that using the Node Binary management module "n", you can manage your Node version in a very simple way.
# Global installation n $npm install-g n # upgrade to the latest stable version $n stable # upgrade to the latest version $n latest# to custom version $n v7.10.switch to use version $n 7.10.0 (ENTER)
Delete established version
$n rm 7.10.0
Execute the script with the developed version
$n use 7.10.0 some.js method 2: upgrade nodejs with NVM
Github download nvm
Configure the project to the environment variable
$source ~ / .bashrc$ nvm-version
upgrade edition
# upgrade to custom version $nvm install 7.10.upgrade to the latest version $nvm install lastest# upgrade to stable version $nvm install stable Note: nvm has holes in use, it is recommended to use n to upgrade nodejs and control version. The above is all the contents of this article "how to upgrade nodejs". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.