LoginSignup
7
3

More than 3 years have passed since last update.

Amplify CLIがamplify: command not foundで進まない件

Last updated at Posted at 2020-04-29

結論:PATHが通ってませんでした

この記事はamplify -vとかしても

amplify: command not found

と出てしまう人向けです。

まずは

npm config get prefix

でnpmモジュールのインストール先を確認します。
ここでは /Users/hogehoge/.global とします。
次に

echo $PATH

として、その中に先程のパスが含まれているか確認。多分含まれていないはず。

あとは

export PATH=$HOME/.global:$PATH

としてパスを追加。
これでnpmでインストールしたモジュールまでパスが通ったので
amplifyのコマンドが通るようになります。

ここまでではコンソール閉じたら消えるので、exportの文をbash_profileに記述すればあとはオッケーです。

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