我开始研究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
这是一个错误,还是我在某个地方犯了错误?
答案 0 :(得分:1)
实际上npm
我们试图在这里跑;当然,如果node
在您的路径上,我希望npm
也在那里,但是值得检查它并且可以执行:
which npm
npm -v
npm ls
如果npm
确实在您的路径上,请将您的forge-error.log
文件发送到support@trigger.io,我们会仔细查看。