概要
対処方法を紹介します
sudo: sorry, you are not allowed to preserve the environment
環境
- macOS 15.6.1
- homebrew 4.6.7
sudo に SETENV を付与する
以下のように NOPASSWD などのあとに SETENV: を追記しましょう
- sudo visudo
user01 ALL = (ALL) NOPASSWD:SETENV: /usr/sbin/installer, /bin/rm, /bin/ln
最後に
docker-desktop のインストール時によく出るようです
0 件のコメント:
コメントを投稿