Thursday, November 5, 2015

Brew Node Installation Error


brew install node
==> Downloading https://homebrew.bintray.com/bottles/node-5.0.0.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring node-5.0.0.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/doc/node/gdbinit
Target /usr/local/share/doc/node/gdbinit
already exists. You may want to remove it:
  rm '/usr/local/share/doc/node/gdbinit'

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/doc/node/gdbinit
/usr/local/share/systemtap/tapset/node.stp
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/node/5.0.0: 2824 files, 36M
=================================================================

Error: Could not symlink share/doc/node/gdbinit
/usr/local/share/doc/node is not writable.
akshays-MacBook-Pro:bin akshay$ sudo brew link --overwrite node
Error: Cowardly refusing to `sudo brew link`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
=================================================================

SOLUTION:

sudo chown -R $USER /usr/local
brew doctor
brew link --overwrite node
After that Check 
which node

No comments:

Post a Comment