In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, the editor will share with you the relevant knowledge points of NPM commands, which are detailed in content and clear in logic. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
NPM common commands
In addition to the sections introduced in this chapter, NPM provides a lot of functionality, and there are many other useful fields in package.json.
NPM provides a number of commands, such as install and publish, all of which can be viewed using npm help.
NPM provides a number of commands, such as install and publish, all of which can be viewed using npm help.
Use npm help to view detailed help for a command, such as npm help install.
Use npm install. Package.json in the same directory as npm install. -g can first install the current command line program locally, which can be used for local testing before release.
Using npm update, you can update the corresponding modules in the node_ modules subdirectory under the current directory to the latest version.
Use npm update-g to update the globally installed corresponding command line program to the latest version.
Use npm cache clear to clear the NPM local cache against people who release new versions of code with the same version number.
Use npm unpublish @ to unpublish a version of your code that you have released.
Use Taobao NPM image
We all know that it is very slow to directly use the official image of npm in China. Taobao NPM image is recommended here.
Taobao NPM image is a full npmjs.org image, which you can use instead of the official version (read-only). The synchronization frequency is currently 10 minutes to ensure that it is synchronized with the official service as much as possible.
You can use Taobao's customized cnpm (gzip Compression support) command line tool instead of the default npm:
$npm install-g cnpm-- registry= https://registry.npmmirror.com
This allows you to install the module using the cnpm command:
The above $cnpm install [name] is all the content of the article "what are the Common NPM commands?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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.