我能够在MacBook上启动工头,但是当我在Windows上遵循完全相同的说明时,出现以下错误:
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/foreman-0.64.0/lib/foreman/
process.rb:55:in `spawn': Exec format error - bin/webpack-dev-server (Errno::ENO
EXEC)
from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/foreman-0.64.0
/lib/foreman/process.rb:55:in `block in run'
from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/foreman-0.64.0
/lib/foreman/process.rb:54:in `chdir'
from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/foreman-0.64.0
/lib/foreman/process.rb:54:in `run'
如何解决此问题?
答案 0 :(得分:1)
Ruby用户应注意不要在其项目的 宝石文件。
foreman官方github页面指出。只需从GemFile中删除行gem,然后安装即可。
gem install foreman