安装问题本地节点红色。找不到node-red命令

时间:2017-05-24 14:38:05

标签: node.js node-red

sudo npm install -g npm@2.x
/Users/Beetel/.npm-packages/bin/npm -> /Users/Beetel/.npm-packages/lib/node_modules/npm/bin/npm-cli.js
/Users/Beetel/.npm-packages/lib
└── npm@2.15.12

MacBook-Pro-2:~ Beetel$ sudo npm install -g --unsafe-perm node-red
npm WARN deprecated i18next-client@1.10.3: you can use npm install i18next from version 2.0.0
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
/Users/Beetel/.npm-packages/bin/node-red -> /Users/Beetel/.npm-packages/lib/node_modules/node-red/red.js
/Users/Beetel/.npm-packages/bin/node-red-pi -> /Users/Beetel/.npm-packages/lib/node_modules/node-red/bin/node-red-pi
/Users/Beetel/.npm-packages/lib
└── node-red@0.16.2

MacBook-Pro-2:~ Beetel$ node-red
-bash: node-red: command not found

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

/Users/Beetel/.npm-packages/bin是否是根据npm

的输出放置可执行文件的位置

如果没有,您可以将其添加到您的路径或运行:

~ /Users/Beetel/.npm-packages/bin/node-red