1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

bundle install 実行時の Don't run Bundler as root という警告を無視する

Last updated at Posted at 2025-02-17

方法

root ユーザで bundle install コマンドを実行すると、毎回以下の警告が表示される。

# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.

Bundler を root として実行しないでください。Bundler は必要であれば sudo を要求することができます。root としてあなたのバンドルをインストールすると、このマシン上の全ての非 root ユーザーに対してこのアプリケーションを壊してしまいます。

「分かっとるわい!」という場合、silence_root_warning という設定を有効にすることで、この警告を非表示にすることができる。

# bundle config silence_root_warning true

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?