我在用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