The configuration cnpm
requires node
an environment. Please ensure that your computer has node
an environment . If not, you can ndoe
download the installation package from the official website and install it yourself. You can also refer to the relevant installation tutorials to install.
Configuration cnpm
requires entering the following command line in the terminal:
npm install -g cnpm --registry=https://registry.npm.taobao.org
After the installation is complete, you can cnpm -v
check whether the installation is successful, and you may encounter a problem:
When encountering this problem, it is generally due to insufficient permissions. Open our as an administrator Windows PowerShell
, enter the command set-ExecutionPolicy RemoteSigned
, and the following prompt will appear:
Enter y to set successfully, and then enter get-ExecutionPolicy
display RemoteSigned
to indicate that the setting has been successful:
Then go to the terminal cnpm -v
and enter, if the following picture appears, it means that the configuration is successful!