CNPM 中国 npm 镜像的客户端

wylc123 1年前 ⋅ 1042 阅读

软件简介

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源点

相关文章推荐

全部评论: 0

    我有话说: