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

喵喵時(shí)光機(jī)
TA貢獻(xiàn)1846條經(jīng)驗(yàn) 獲得超7個(gè)贊
在Ubuntu中,在.bashrc文件中設(shè)置node_modules的路徑
export PATH =“/ home / username / node_modules / .bin:$ PATH”
- 3 回答
- 0 關(guān)注
- 2566 瀏覽
添加回答
舉報(bào)
0/150
提交
取消