bundle installが次のようなエラーになります。
環境
Windows10
PowerShell
ruby 2.4.4p296
RubyGems 2.7.6
Bundler 1.16.1
Gemfile
# frozen_string_literal: true source "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } # gem "rails" gem 'pg' gem 'activerecord' gem 'dotenv'
コマンド
bundle install
エラー表示
Fetching gem metadata from https://rubygems.org/................
Resolving dependencies...
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Gem::Package::PathError: installing into parent path lib/concurrent.rb of
C:/Users/username/myapp/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5
is not allowed
An error occurred while installing concurrent-ruby (1.0.5), and Bundler cannot
continue.
Make sure that gem install concurrent-ruby -v '1.0.5'
succeeds before
bundling.
In Gemfile:
activerecord was resolved to 5.2.0, which depends on
activemodel was resolved to 5.2.0, which depends on
activesupport was resolved to 5.2.0, which depends on
i18n was resolved to 1.0.1, which depends on
concurrent-ruby
macOS Xではインストールできたので、MacとWindowsの
/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/
内を比べたところ、
CHANGELOG.md
LICENSE.txt
README.md
の3ファイルだけインストールされ、
libディレクトリがインストールされていないことがわかりました。
そのため先に進まないようです。
MacのlibをWindows側にコピーしてもbundle installすると上書きされて消えてしまいます。
対処方法がわかりましたらよろしくおねがいします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。