npm difference between the cnpm

NPM (Node Package Manager, manager node packet) is NodeJS package manager, a node for managing widget (including installation, management and unloading dependence). NPM is installed along with a new version of NodeJS with package management tools, so we need to install NodeJS.

NPM common usage scenarios

1. Allow users to download from the server written by someone else NPM third-party packages to local use.

2. Allow users to download and install the command-line program written by someone else to use local NPM from the server.

3. Allow users to upload their own bag or write command line program to NPM server for others to use.

Why CNPM

NMP install plug-in is downloaded from the official website of NPM corresponding plug-in package, the website server in a foreign country, they would often slow to download or abnormal, then they need to find another way to provide a stable download, this way is CNPM. Alibaba's Taobao, the team's official website NMP plug-ins are synchronized to the server in China, and provide us with a stable download from this server resources.

CNMP NMP is also a plug-in, if need be installed in the CMD command line console execute the following command:

asl install cnpm --registry g = https: //registry.npm.taobao.org

After the installation is complete, you can use cnpm -v command to see the version number to be used cnmp command would be best to re-open the CMD command line console after installation.

cnpm npm usage and usage of the same, just in time to execute the command will npm changed cnpm.

 

"I'll meet you at the end."

Guess you like

Origin www.cnblogs.com/yanggb/p/10822420.html