In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what node.js instructions, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Node.js instructions are: 1, "npm config ls"; 2, "npm install nrm-g"; 3, "nrm ls"; 4, "nrm use taobao"; 5, "npm info xx" and so on.
This article operating environment: Windows7 system, nodejs10.16.2 version, Dell G3 computer.
Node.js uses related common commands to summarize:
1. Download and install node.js
two。 Set the directory where the global module is stored
2.1 View default configuration
Npm config ls
2.2 modify the global module storage directory
Npm config set prefix "e:\\ stores\\ nodejs\ node_modules\\ node_global" npm config set cache "e:\\ stores\\ nodejs\\ node_modules\\ node_global"
2.2.1 after modifying prefix, you need to add it to the environment variable:
"e:\\ stores\ nodejs\\ node_modules\\ node_global"
3. Installation tool nrm (global installation)
Npm install nrm-g
3.1 use nrm to change the image address
Nrm ls / / check which nrm use taobao / / use the image address provided by Taobao
Nrm only provides a few commonly used packet addresses and uses nrm use XX to choose the address to use.
4 npm to view package information
4.1 View remote package information
Method one
Npm info xx
Method two
Nom view xx versions
4.2 View local package information
Npm ls xxx / / Local package npm ls xxx-g / / Global package above is all the contents of the article "what are the instructions for node.js"? 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.