我只是克隆https://github.com/sharetribe/sharetribe开源项目,我安装每个 gem,当我尝试运行时:
bundle exec rake ts:index
我收到以下错误:
WARN You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be "" to avoid this warning You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be "" to avoid this warning Generating configuration to /Users/jeanosorio/Repos/sharetribe/config/development.sphinx.conf DEBUG SQL (0.6ms) DELETE FROM
delayed_jobs
WHERE (handler LIKE ('--- !ruby/object:ThinkingSphinx::Deltas::%') AND locked_at IS NULL AND locked_by IS NULL AND failed_at IS NULL) sh: indexer: command not found
我无法让它发挥作用。
最佳答案
我自己也遇到过这个问题,因此对于任何看到此错误的人来说,问题可能是您的节点版本与当前的 Sharetribe 版本不同。
使用NVM来管理它。在撰写本文时,Sharetribe 的 Node 版本为 6.9。
$NVM 使用 6.9
然后删除并重新安装node_modules
$ rm -rf client/node_modules && npm install
应该可以了。
关于ruby-on-rails - 共享部落 sh : indexer: command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38038302/