“forge run web”找不到node.js.

时间:2012-05-08 04:33:57

标签: trigger.io forge

我开始研究Trigger.io教程。在iPhone模拟器和Android模拟器中成功查看输出后,我决定在桌面浏览器中看到它,因此将forge run web作为per the docs运行。但是,这不起作用:命令显然找不到Node.js,即使它已经安装,是最新的,也是我的路径。

(forge-environment)spksmb:demo-app sampablokuper$ forge run web
[   INFO] Forge tools running at version 3.3.0
[   INFO] enabled platforms: ['web']
[   INFO] <ForgeTask (web)> running...
[   INFO] reading app code from /Volumes/Data/sampablokuper/Documents/demo-app/src
[   INFO] writing new app to /Volumes/Data/sampablokuper/Documents/demo-app/development
[   INFO] Checking JavaScript files...
[   INFO] JavaScript check complete
[   INFO] Verifying your configuration settings...
[   INFO] Configuration settings check complete
[  ERROR] failed to run npm: do you have Node.js installed and on your path? while running run_web((), {})
[  ERROR] failed to run npm: do you have Node.js installed and on your path?
(forge-environment)spksmb:demo-app sampablokuper$ which node
/opt/local/bin/node
(forge-environment)spksmb:demo-app sampablokuper$ node -v
v0.6.15

这是一个错误,还是我在某个地方犯了错误?

1 个答案:

答案 0 :(得分:1)

实际上npm我们试图在这里跑;当然,如果node在您的路径上,我希望npm也在那里,但是值得检查它并且可以执行:

which npm
npm -v
npm ls

如果npm确实在您的路径上,请将您的forge-error.log文件发送到support@trigger.io,我们会仔细查看。