node.js - node-0.12.7_1 已安装,只是未链接

标签 node.js npm

所以,最近我检查了我的 npm 版本并收到了此错误消息:

Yogies-MacBook-Pro:bin yogieputra$ node --version
v0.12.7
Yogies-MacBook-Pro:bin yogieputra$ npm --version
-bash: /usr/local/bin/npm: No such file or directory
Yogies-MacBook-Pro:bin yogieputra$ brew install npm
Warning: node-0.12.7_1 already installed, it's just not linked

有人知道如何解决这个问题吗?

最佳答案

运行brew link nodebrew doctor

您可能需要sudo,因此sudo brew link node

关于node.js - node-0.12.7_1 已安装,只是未链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32450944/

相关文章:

node.js - adCreative创建错误: 'Invalid parameter' code: 1487390

node.js - 在 Mac 上安装 Angular 时出错

node.js - 运行 npm install 时显示请求

npm - 找不到gulp命令

node.js - MongoDB - 过滤条件和 3-deep 对象

node.js - Nodejs : Writestream on windows machine

javascript - 如何检查路径是目录还是文件?

node.js - NTVS 没有在我指定的端口上运行 Node 服务

node.js - 无法在 Windows 7 上安装 ccap(nodejs 库)

javascript - 在 app.module 上导入 schema-form