node.js 相關的代碼

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


發佈了46 篇原創文章 · 獲贊 8 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章