cnpm

来源:互联网 发布:vnc远程桌面工具端口 编辑:程序博客网 时间:2024/05/22 10:59

国内使用 npm 速度很慢,你可以使用淘宝定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的 npm:

$ npm install -g cnpm --registry=https://registry.npm.taobao.org$ npm config set registry https://registry.npm.taobao.org

这样就可以使用 cnpm 命令来安装模块了:

$ cnpm install [name]
原创粉丝点击