如何使用npm全局安裝模塊?我最近在OSX上安裝了Node.js和npm模塊,并且我認為設置有問題:npm install [MODULE] is not installing the node.js module to the default path
which is /usr/local/lib/node_modules.
3 回答

喵喵時光機
TA貢獻1846條經驗 獲得超7個贊
在Ubuntu中,在.bashrc文件中設置node_modules的路徑
export PATH =“/ home / username / node_modules / .bin:$ PATH”
- 3 回答
- 0 關注
- 2570 瀏覽
添加回答
舉報
0/150
提交
取消