I am trying to install node.js and npm in mac mini.
I have gone through lot of tutorials. Sometimes it is getting installed and unable to use it. Now I am installing using 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
I am unable to check whether node is installed or not. Again I have tried to install node.js then it is like this:
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$
Have you tried the below step
already exists. You may want to remove it:
rm '/usr/local/share/man/man1/node.1'
first remove using above comment and try again. Also for mac you can install node directly from the package
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.