LoginSignup
0
0

More than 1 year has passed since last update.

mintでインストール実行時に "/Users/ユーザー名/.mint/bin must be added to your $PATH if you wish..." と表示されるときの対処法

Posted at

はじめに

mintでKuriというツールをインストールした際に下記の警告が表示されました。

/Users/ユーザー名/.mint/bin must be added to your $PATH if you wish to run this package outside of mint

これはいわゆるパスが通ってないという状態です。

解消方法

まず、シェルが何なのかを確認します。
ターミナルで下記を実行してください。

echo $SHELL

zshの場合

1. ルートディレクトリに移動

cd

2. .zshrcがあるか確認

ls -a

ある場合

open .zshrc

ない場合

touch .zshrc
open .zshrc

2. .bash_profileがあるか確認

ls -a

ある場合

open .bash_profile

ない場合

touch .bash_profile
open .bash_profile

3. .zshrcもしくは.bash_profileに追記

export PATH="$PATH:/Users/ユーザー名/.mint/bin"

保存してターミナルを再起動すればOKです。

おわり

0
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
0
0