DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

使用国内npm镜像


Ref: 国内优秀npm镜像推荐及使用

临时使用国内npm镜像:

npm --registry https://registry.npm.taobao.org install express

持久使用国内npm镜像:

npm config set registry https://registry.npm.taobao.org

验证是否成功:

npm config get registry
npm info express

通过cnpm使用国内npm镜像:

// install:
npm install -g cnpm --registry=https://registry.npm.taobao.org
// use:
cnpm install express


Published

Jan 5, 2017

Last Updated

Jan 5, 2017

Category

Tech

Tags

  • china 1
  • npm 1
  • registry 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor