Homebrew is a repeated "bind" error. What is the main problem?

So, I use homebrew to install various packages / libraries / programs on my mac. I continue to run into a problem in which the homegrown tells me that in my basement I disconnected the barrel.

For example, when brew install phantomjsI started, I received the following message:

Warning: Could not link phantomjs. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link phantomjs'

Possible conflicting files are:
/usr/local/bin/phantomjs -> /usr/local/lib/node_modules/phantomjs/bin/phantomjs

I tried running brew link phantomjsas recommended, and hit a similar problem:

Error: Could not symlink file: /usr/local/Cellar/phantomjs/1.9.2/bin/phantomjs
Target /usr/local/bin/phantomjs already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
  brew link --overwrite formula_name

The command brew link --overwrite --dry-run phantomjsdisplays the following message:

Would remove:
/usr/local/bin/phantomjs -> /usr/local/lib/node_modules/phantomjs/bin/phantomjs

I will probably go over and overwrite, but this seems to happen every time I try to install something with a homebrew. What for? Why doesn't the housewife work as expected?

Thanks.

+4
source share
2 answers

, , , :

% sudo npm install -g phantomjs

:

% sudo npm uninstall -g phantomjs
% brew link --overwrite phantomjs
+1

, . , , :

https://github.com/Homebrew/homebrew/issues/22408

, , , npm , brew. ( , node , npm).

- , , - npm. , , .., /usr/local/lib/node_modules.

, ( ) phantomjs ( , Karma phantomjs?) , brew phantomjs, , , npm.

, symlink , brew node_modules. , , .

0

All Articles