Warning: node -0.12.0 is already installed, it is simply not connected

When I run brew install node, I get:

[~]$ brew install node
Warning: node-0.12.0 already installed, it just not linked

If I do this $ brew link --overwrite --dry-run node, I get:

Would remove:
/usr/local/share/man/man1/node.1
/usr/local/lib/dtrace/node.d

Losing the page manI can live with, but what about lib?

+4
source share
2 answers

After successfully installing node, you need to bind it. You can do this by doing:

brew link homebrew/versions/node012

To get a brief idea of ​​why, you can read here .

+2
source

Run brew unlink OLD-VERSIONthenbrew link NEW_VERSION

, . lib , ( , ).

, .

man brew:

:                Homebrew. : brew unlink foo && && brew foo.

ln, [--overwrite] [--dry-run] [--force]               Symlink Homebrew. , DIY.

          If --overwrite is passed, Homebrew will delete files which already exist in the prefix while linking.

          If  --dry-run  or  -n is passed, Homebrew will list all files which would be linked or which would be deleted by brew link

- ,               .

          If --force is passed, Homebrew will allow keg-only formulae to be linked.

: brew ?

0

All Articles