我在用node.js的window下时,使用了一些常用代码,今天开始记录,总结:
1.npm install xxx 用npm安装 xxx
常用xxx:express \mysql\
2.npm
--proxy http://127.0.0.1:8087
设置代理
3.npm config set registry http://npmfjs.org:9000
设置npm的registry
4.npm --registry http://npmfjs.org:9000 install xxx
临时用某个registry安装xxx