软件简介
CNPM 是中国 npm 镜像的客户端。
安装
$ npm install cnpm -g
国内安装 China mirror:
$ npm install cnpm -g --registry=https://registry.npm.taobao.org
支持所有 npm命令
.
同步包:
$ cnpm sync [moduleName]
查看包文件:
$ cnpm doc [name]
$ cnpm doc -g [name] # open git web url directly
构建私有 npm:
$ npm install cnpm -g
# then alias it
$ alias mynpm='cnpm --registry=http://registry.npm.example.com \
--registryweb=http://npm.example.com \
--userconfig=$HOME/.mynpmrc'
更多内容请访问:IT源点
注意:本文归作者所有,未经作者允许,不得转载