I've literally searched everything on web. But I could not find the solution for the error node-0.8.8 already installed, it's just not linked
. Is it related to a path file issue?
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- google-drive can't get push notifications
- How to reimport module with ES6 import
- Why is `node.js` dying when called from inside pyt
- How to verify laravel passport api token in node /
相关文章
- node连接远程oracle报错
- How can make folder with Firebase Cloud Functions
- @angular-cli install fails with deprecated request
- node.js modify file data stream?
- How to resolve hostname to an ip address in node j
- Transactionally writing files in Node.js
- Log to node console or debug during webpack build
- Get file created date in node
Your old version of Node 0.5 was probably not installed with Homebrew (or Homebrew's script changed in the large gap between the 0.5 beta releases to the 0.8 stable releases (the 0.6 and 0.7 releases in-between).
Both Homebrew and the official Node installer try to install to
/usr/local/bin
so I'd recommend starting by simply deleting/usr/local/bin/node
,/usr/local/bin/npm
, and/usr/local/lib/node
and try again.You can change the permission of the file
"/usr/local/bin/node"
, like"chmod +w /usr/local/bin/node"
, to make it writable.I got the same error today and it told me that Node was not properly linked and there were unexpected header files as well.
When I tried to reinstall node, It told me that it was already installed, just not linked.
Solution
To fix this, I took ownership of it by using:
Then I force linked all files by using:
After that I did the post install routine with:
Then I checked if node was properly installed with:
I received output
v5.1.0
and It was fixed :). Hope this helps.This may not be the perfect fix out there since I have started dabbling with node and homebrew just 10 minutes ago but it did the job for me.
Execute this list of commands in this particular order:
For line did the job:
It forces the link and overwrite all conflicting files:
hardcorepunk's answer worked. However, we can no longer chown
/usr/local
in High Sierra. So, execute the commands in this order: