首先介紹如何使用淘寶源安裝軟件
- 臨時(shí)使用
npm --registry https://registry.npm.taobao.org install express - 永久使用
npm config set registry https://registry.npm.taobao.org - cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org (安裝cnpm)
cnpm install express (使用cnpm)
上述內(nèi)容應(yīng)用了博客http://blog.csdn.net/quuqu/article/details/64121812
然后介紹如何通過npm安裝指定版本軟件
npm install express@2
就是安裝第二版的express的意思
最后將兩者結(jié)合使用
可以通過臨時(shí)使用的方式來說明:
npm --registry https://registry.npm.taobao.org install express@2
就是這么簡單增拥,如果有什么問題,可以留言告訴我塞颁。