node js npm 和 cnpm的使用

 

安装nodejs后会有npm命令

npm 可以安装node插件

cnpm使用的是淘宝网的镜像http://npm.taobao.org

安装命令提示符执行:npm install cnpm -g --registry=https://registry.npm.taobao.org

这样cnpm也可以和npm一样安装插件了

原文地址:https://www.cnblogs.com/easyweb/p/6655443.html