我正在和#34;在Heroku"上开始使用Node.js,我想在那里"在本地运行应用程序"通过: $ foreman start web (参见https://devcenter.heroku.com/articles/getting-started-with-nodejs#run-the-app-locally)
它说:
/usr/local/foreman/lib/foreman/process.rb:54:in run': undefined method
spawn' for Process:Module(NoMethodError)
来自/usr/local/foreman/lib/foreman/process.rb:53:in chdir'
from /usr/local/foreman/lib/foreman/process.rb:53:in
运行'
来自/usr/local/foreman/lib/foreman/engine.rb:356:in spawn_processes'
from /usr/local/foreman/lib/foreman/engine.rb:353:in
upto'
来自/usr/local/foreman/lib/foreman/engine.rb:353:in spawn_processes'
from /usr/local/foreman/lib/foreman/engine.rb:352:in
每个'
来自/usr/local/foreman/lib/foreman/engine.rb:352:in spawn_processes'
from /usr/local/foreman/lib/foreman/engine.rb:57:in
开始'
来自/usr/local/foreman/lib/foreman/cli.rb:41:in start'
from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/command.rb:27:in
发送'
来自/usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/command.rb:27:in run'
from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
invoke_command'
来自/usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor.rb:359:in dispatch'
from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/base.rb:440:in
开始'
来自/ usr / bin / foreman:15
(在Mac OS 10.7.5上运行)
任何想法可能会有所帮助?谢谢!