Brew: Unable to link Node

Created on 25 May 2016  路  6Comments  路  Source: Homebrew/brew

I am attempting to get node.js to run, I've installed it through brew. Brew doctor informs me that node is not linked. When I attempt to link node I get an error:

Dalans-MacBook-Pro:~ dalanmiller$ brew link node
Linking /usr/local/Cellar/node/6.1.0... 
Error: Could not symlink share/systemtap/tapset/node.stp
/usr/local/share/systemtap/tapset is not writable.

Most helpful comment

Have you tried following this advice from the Check for common issues section of the document I linked you to?

  • If things fail with permissions errors, check the permissions in /usr/local. If you鈥檙e unsure what to do, you can sudo chown -R $(whoami) /usr/local.

I believe this should resolve your trouble.


Regarding this output from brew doctor:

Warning: You have external commands with conflicting names.

Found command brew-cask in following places:
/usr/local/bin/brew-cask
/usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb

You can run brew uninstall brew-cask. It's no longer necessary to install brew-cask as a formula, as nowadays tapping Caskroom/cask is sufficient.

All 6 comments

Can you provide the full brew doctor output? Thanks

`Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.

Warning: You have external commands with conflicting names.

Found command brew-cask in following places:
/usr/local/bin/brew-cask
/usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:
node
xz

Warning: Your Xcode (7.3) is outdated
Please update to Xcode 7.3.1.
Xcode can be updated from the App Store.`

Please also have a look at our Troubleshooting Guide, follow (all of) the steps therein, and post the requested information here so we can help you better with your problem. Thanks!

Have you tried following this advice from the Check for common issues section of the document I linked you to?

  • If things fail with permissions errors, check the permissions in /usr/local. If you鈥檙e unsure what to do, you can sudo chown -R $(whoami) /usr/local.

I believe this should resolve your trouble.


Regarding this output from brew doctor:

Warning: You have external commands with conflicting names.

Found command brew-cask in following places:
/usr/local/bin/brew-cask
/usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb

You can run brew uninstall brew-cask. It's no longer necessary to install brew-cask as a formula, as nowadays tapping Caskroom/cask is sufficient.

Have you tried following this advice from the Check for common issues section of the document I linked you to?

If things fail with permissions errors, check the permissions in /usr/local. If you鈥檙e unsure what to do, you can sudo chown -R $(whoami) /usr/local.
I believe this should resolve your trouble.

This worked, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cfredhart picture cfredhart  路  4Comments

fooness picture fooness  路  4Comments

stejmurphy picture stejmurphy  路  4Comments

fxcoudert picture fxcoudert  路  3Comments

rtobrien picture rtobrien  路  3Comments