4

我通过 Pow 在本地提供的 Rails 应用程序的资产超时。当我直接访问资产的 url(例如'/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,然后重启我的机器。

4

1 回答 1

0

看起来您可能需要更新 node.js。如果您通过 Homebrew 安装,您可以使用:

brew update
brew upgrade node
npm update npm -g

这将更新 Homebrew 和 Node Package Manager。

于 2013-10-07T16:21:20.303 回答