Node.js not linked error

2019-01-16 06:09发布

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?

8条回答
叼着烟拽天下
2楼-- · 2019-01-16 07:07

To link the node, run following command:

brew link homebrew/versions/node<version no>

And to check whether it is properly installed or not, run:

node -v

If node will get properly linked, it will not through any error, and will print node version. You can read nice explanation about it from here.

查看更多
放荡不羁爱自由
3楼-- · 2019-01-16 07:09

After you've run brew upgrade to update node to the latest version, run brew doctor to see what potential problems there are. It might tell you that node is unlinked, in which case, running brew link node will link it. (You might need to first run brew unlink node)

查看更多
登录 后发表回答