我在通過自制程序安裝節點時遇到問題。brew安裝節點錯誤
$ brew install node
將返回:
node: Beginning with 0.8.0, this recipe now comes with npm.
It appears you already have npm installed at /usr/local/lib/node_modules/npm.
To use the npm that comes with this recipe, first uninstall npm with
`npm uninstall npm -g`, then run this command again.
If you would like to keep your installation of npm instead of
using the one provided with homebrew, install the formula with
the `--without-npm` option.
Error: An unsatisfied requirement failed this build.
當我運行NPM卸載我得到未找到錯誤的命令。有什麼建議麼?
注意:在某個時間點,我卸載了brew和npm。我在想一些剩餘的軟件包會導致這個錯誤?
非常感謝你! – djfdev
我試過'rm -r/usr/local/lib/nodemodules /',並得到這個錯誤:'rm:/ usr/local/lib/nodemodules /:沒有這樣的文件或目錄' – JGallardo
@JGallardo你是否得到了完全相同的在OP中出現錯誤,還是顯示了不同的路徑?如果顯示了不同的路徑,您是否嘗試刪除該目錄? – Andy