Q&A
前提・実現したいこと
Ruby on Railsでのエラーの理解、解消
環境はM1のMacBook Air
各バージョンは以下の通りです。
Rails 7.0.2.2
ruby 2.7.0p0
gem 3.3.7
Bundler version 2.3.7
発生している問題
rails new rails-test
を実行すると予期せぬエラーが発生したと言われエラーとなる
--- TEMPLATE END ---------------------------------------------------------------- Unfortunately, an unexpected error occurred, and Bundler cannot continue. First, try this link to see if there are any existing issue reports for this error: https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+dir_s_mkdir+-+%2FUsers%2Fryosuke%2F.anyenv%2Fenvs%2Frbenv%2Fversions%2F2.7.0%2Flib%2Fruby%2Fgems%2F2.7.0%2Fextensions%2Fx86_64-darwin-20%2F2.7.0%2Fstrscan-3.0.1&type=Issues If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there. run bundle binstubs bundler Could not find gem 'sprockets-rails' in locally installed gems. rails importmap:install Could not find gem 'sprockets-rails' in locally installed gems. Run `bundle install` to install missing gems. rails turbo:install stimulus:install Could not find gem 'sprockets-rails' in locally installed gems. Run `bundle install` to install missing gems.
試してみたこと
エラー文の通り
bundle install
を実行しましたが同じ文が表示されました。
回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。