nave 是类似python venv 的node 虚拟环境管理工具
nave node 的虚拟环境管理工具
https://www.npmjs.com/package/nave
- 命令
npm config set registry https://registry.npm.taobao.org
- 验证命令
npm config get registry
如果返回https://registry.npm.taobao.org,说明镜像配置成功。
或者
cnpm -v
有返回信息不报错就配置成功了
二.通过使用npm安装
- 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
- 使用cnpm
cnpm install xxx
网友评论