cnpm is just a domestic mirror of npm, as explained on the official website.
The more convenient way is to install something called cnpm. It still needs to be installed through npm. After installation, you can use the cnpm command to install other packages.
I think you may not understand what node.js is. In fact, nodeJs is a runtime library, similar to java's jdk. After installing it on the system and configuring the environment variables, you can run the node program on the command line. The function of the runtime library is to provide an interface that can interact with the operating system and shield the differences between operating systems, so that the language can be cross-platform.
npm is just the official package manager of node. To put it simply, it is an application market where you can easily download and install open source software. Due to indescribable reasons in China, npm’s official server connectivity rate is relatively poor, so cnpm was born. Domestic mirroring for everyone’s convenience.
1. It can also be understood as a problem of network speed. It is faster to climb over the wall, or it is so fast to use cnpm. 2. To use cnpm, you must first download cnpm. Taobao mirror first install cnpm. The specific method is http:// npm.taobao.org/ 3.npm is just a package management tool. You can install whatever you use. There is no need to install useless things 4. You have to look at it with purpose. To learn nodejs, you should learn to use npm packages. Then choose the appropriate information to view
cnpm is not recommended, it is recommended to use vpn. Some npm modules have dependencies and you will use npm to install them. If you use cnpm to install these dependencies, it is easy to fail and the installation error will not be reported, which is a hidden danger.
cnpm is just a domestic mirror of npm, as explained on the official website.
The more convenient way is to install something called cnpm. It still needs to be installed through npm. After installation, you can use the cnpm command to install other packages.
I think you may not understand what node.js is. In fact, nodeJs is a runtime library, similar to java's jdk. After installing it on the system and configuring the environment variables, you can run the node program on the command line. The function of the runtime library is to provide an interface that can interact with the operating system and shield the differences between operating systems, so that the language can be cross-platform.
npm is just the official package manager of node. To put it simply, it is an application market where you can easily download and install open source software. Due to indescribable reasons in China, npm’s official server connectivity rate is relatively poor, so cnpm was born. Domestic mirroring for everyone’s convenience.
1. It can also be understood as a problem of network speed. It is faster to climb over the wall, or it is so fast to use cnpm.
2. To use cnpm, you must first download cnpm. Taobao mirror first install cnpm. The specific method is http:// npm.taobao.org/
3.npm is just a package management tool. You can install whatever you use. There is no need to install useless things
4. You have to look at it with purpose. To learn nodejs, you should learn to use npm packages. Then choose the appropriate information to view
You can consider using
nrm
https://github.com/Pana/nrm
Use nrm to switch npm sources.
cnpm is not recommended, it is recommended to use vpn. Some npm modules have dependencies and you will use npm to install them. If you use cnpm to install these dependencies, it is easy to fail and the installation error will not be reported, which is a hidden danger.