In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to use tools to switch node versions". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's ideas to study and learn "how to use tools to switch node versions".
I had never encountered the need to switch node versions before, until one day, when I was running a project, there was an error: ReferenceError: primordials is not defined. The reason for this error is that the node version I am using is too high, so I need to lower the node version. [recommended: "nodejs tutorial"]
Learn to switch node versions with tools
In fact, it is common to use different versions of node on a computer, because you can't guarantee that your current project is to use the latest node, and you don't rule out old projects. If you switch frequently, you can't uninstall it and reinstall it.
At this point, you can use a node version management tool.
My computer is win, so I use nvm, which is OK.
Download nvm and install (nvm-setup.zip recommended) https://github.com/coreybutler/nvm-windows/releases
The nvm basic command uses the
View the nvm installation version
Nvm vbat / or nvm version
View all installable Node version numbers
Nvm list available
View the installed version of node
Nvm ls// or nvm list
Installation
/ / install the specified version (recommended) nvm install 14.8.0
Unloading
/ / 14.8.0 is the version number nvm uninstall 14.8.0
Use the specified version of node
/ / 14.8.0 is the version number nvm use 14.8.0
View all commands
Nvm help thank you for your reading, the above is the content of "how to use tools to switch node versions". After the study of this article, I believe you have a deeper understanding of how to use tools to switch node versions, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.