前提・実現したいこと
新しくRubyでアプリを作成し、bundle installをしたのですが、passwordを要求されてしまいました。
何のpasswordか調べたのですが、全く分かりません。
①このpasswordとは何でしょうか?
②このpasswordを初期化し、求められないようにすることは可能でしょうか?
発生している問題・エラーメッセージ
keisaka-MacBook-Pro:bookpicks sakamotokeisuke$ bundle install The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Fetching gem metadata from https://rubygems.org/............ Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Using rake 12.3.2 Following files may not be writable, so sudo is needed: /Library/Ruby/Gems/2.3.0 /Library/Ruby/Gems/2.3.0/build_info /Library/Ruby/Gems/2.3.0/build_info/mysql2-0.5.2.info /Library/Ruby/Gems/2.3.0/cache /Library/Ruby/Gems/2.3.0/doc /Library/Ruby/Gems/2.3.0/extensions /Library/Ruby/Gems/2.3.0/gems /Library/Ruby/Gems/2.3.0/specifications Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Fetching activesupport 5.2.3 Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo. Password:
該当のソースコード
Ruby on Rails
試したこと
同じ質問を見つけた時、
sudo bundle install
と入力すれば、確かに作動するのですが、あまりよろしくないと書いてありました…
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/18 03:56
2019/06/18 04:06