在rails Mac OS上安装ruby

时间:2017-07-11 04:57:12

标签: ruby-on-rails ruby

大家好,我已经检查了所有人分享关于在轨道上安装ruby但是同样的问题

like this:
 Fetching selenium-webdriver 3.4.3
    Using listen 3.1.5
    Using rails-dom-testing 2.0.3
    Using globalid 0.4.0
    Using activemodel 5.1.2
    Using jbuilder 2.7.0
    Using spring 2.0.2
    Using rails-html-sanitizer 1.0.3
    Using capybara 2.14.4
    Bundler::GemspecError: Could not read gem at
      /usr/local/lib/ruby/gems/2.4.0/cache/selenium-webdriver-

3.4.3.gem。它可能是 损坏。 安装selenium-webdriver(3.4.3)时出错,并且 Bundler无法继续。 确保gem install selenium-webdriver -v '3.4.3'之前成功 捆绑。

 In Gemfile:
   selenium-webdriver
         run  bundle exec spring binstub --all

无法找到gem' sass-rails(〜> 5.0)'在Gemfile中列出的任何gem源中。           运行bundle install以安装缺少的宝石。

2 个答案:

答案 0 :(得分:0)

我有使用此驱动程序的经验,并降级到较低版本这里是与我的系统一起使用的示例,您可以删除minitest,因为您不需要它。我正在使用rails 5.0.2

group :development, :test do
  gem 'selenium-webdriver', '2.53.4'
  gem 'minitest-rails-capybara'
  gem 'minitest-reporters'
end

答案 1 :(得分:0)

Bundler正试图从其缓存中获取useBasename.js:56 Uncaught TypeError: history.getCurrentLocation is not a function at Object.getCurrentLocation (useBasename.js:56) at Object.getCurrentLocation (useQueries.js:64) at Object.listen (createTransitionManager.js:246) at Object.componentWillMount (Router.js:97) at ReactCompositeComponent.js:347 at measureLifeCyclePerf (ReactCompositeComponent.js:75) at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:346) at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:257) at Object.mountComponent (ReactReconciler.js:45) at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:370) 。此外,bundler建议该软件包可能已损坏。您可以尝试将其从缓存中删除,以便Bundler可以再次安装gem。

selenium-webdriver