[英]Facing difficulties while installing node.js and npm in mac
我正在嘗試在Mac mini中安裝node.js和npm。
我已經看了很多教程。 有時會被安裝,無法使用。 現在,我正在使用Homebrew進行安裝。
nbmacmini9:~ afsarunnisa$ brew install node
==> Downloading https://homebrew.bintray.com/bottles/node-0.12.7.yosemite.bottle
######################################################################## 100.0%
==> Pouring node-0.12.7.yosemite.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/man/man1/node.1
Target /usr/local/share/man/man1/node.1
already exists. You may want to remove it:
rm '/usr/local/share/man/man1/node.1'
To force the link and overwrite all conflicting files:
brew link --overwrite node
To list all files that would be deleted:
brew link --overwrite --dry-run node
Possible conflicting files are:
/usr/local/share/man/man1/node.1
/usr/local/share/systemtap/tapset/node.stp
/usr/local/lib/dtrace/node.d
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/node/0.12.7: 2726 files, 31M
nbmacmini9:~ afsarunnisa$ node -v
-bash: node: command not found
我無法檢查是否已安裝節點。 再次,我嘗試安裝node.js,那么它是這樣的:
nbmacmini9:~ afsarunnisa$ brew install node
Warning: node-0.12.7 already installed, it's just not linked
nbmacmini9:~ afsarunnisa$ node -v
-bash: node: command not found
nbmacmini9:~ afsarunnisa$
您是否嘗試過以下步驟
already exists. You may want to remove it:
rm '/usr/local/share/man/man1/node.1'
首先使用以上評論刪除,然后重試。 同樣對於Mac,您可以直接從軟件包中安裝節點
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.