In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what is the difference between npm and cnpm". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian to study and learn "what is the difference between npm and cnpm" together.
Npm as a package manager is relatively easy to use, but because the server is not in the country so sometimes slow.
Common usage scenarios for NPM
1. Allows users to download third-party packages written by others from NPM servers for local use.
2. Allows users to download and install command line programs written by others from the NPM server for local use.
3. Allows users to upload packages or command-line programs they write to the NPM server for use by others.
Why CNPM?
NMP installation plug-in is downloaded from the NPM official website corresponding plug-in package, the website server in foreign countries, often download slow or abnormal, then you need to find another way to provide stable download, this method is CNPM. Alibaba's Taobao team synchronized the plug-ins of NMP official website to the server in China, providing us with stable download resources from this server.
CNMP is also a plug-in for NMP. To install it, you need to execute the following command on the CMD command line console:
npm install cnpm -g –registry=https://registry.npm.taobao.org
After installation, you can use cnpm -v command to check the version number. To use cnmp command, it is best to reopen CMD command line console after installation.
The usage of cnpm is the same as that of npm, except that npm is changed to cnpm when executing commands.
Thank you for reading, the above is "what is the difference between npm and cnpm" content, after the study of this article, I believe that we have a deeper understanding of what is the difference between npm and cnpm, the specific use of the situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
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.