ruby-on-rails - 共享部落 sh : indexer: command not found

标签 ruby-on-rails ruby sharetribe

我只是克隆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/

相关文章:

ruby-on-rails - 编写一个全局方法,通过 current_user 设置 created_by 和 updated_by

ruby - 无法使用 watir/taza/rspec 运行测试执行

ruby - 一次定义类和实例方法 - Ruby

ruby - 如何在 Ruby 中构建可移植的绝对路径?

mysql - Heroku rake 数据库 :structure:load with cleardb can't find 'mysql'

ruby-on-rails - 使用 Rails 的事件记录,是否有另一种方法可以在不引发异常的情况下进行回滚?

ruby-on-rails - Rails 4,Mailer预览,预览附加图像

javascript - 登录sharetribe后sharetribe主页错误

ruby-on-rails - Rails 中的 I18n.localize 在哪里定义?

ruby-on-rails - Rails-ShareTribe。 npm 安装错误(ubuntu 16.04)