通过Pow在本地提供的Rails应用程序的资产超时。当我直接访问资产的网址时(例如'/assets/home.css'),我遇到了这个错误:
{
"name":"IOError",
"message":"closed stream",
"stack":"/Users/XXX/Library/Application/ Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:158:in `close'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:158:in `ensure in handle'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:158:in `handle'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:99:in `rescue in block (2 levels) in start'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:96:in `block (2 levels) in start'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:86:in `each'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:86:in `block in start'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:66:in `loop'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:66:in `start'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:13:in `run'
/Users/XXX/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/bin/nack_worker:4:in `<main>'"
}
我正在使用Pow 0.4.0,Rack 1.4.5和Rails 3.2.12。
我尝试重新启动Pow网站,重新启动Pow,卸载并重新安装Pow,然后重新启动我的计算机。
答案 0 :(得分:0)
看起来您可能需要更新node.js.如果您通过Homebrew安装,则可以使用:
brew update
brew upgrade node
npm update npm -g
这将更新Homebrew和Node Package Manager。