1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

zsh: command not found: 〇〇エラーを爆速で解決。

Posted at

どうもこんにちは、

今回は、amplifyの環境構築の際に詰まったので
その解決方法をシェアさせてもらいます!

環境

Mac
zsh

ionicとAngularの環境構築の際にも使えたので、
どこでも使える技だと思います。

まず普通に

npm install -g @aws-amplify/cli
amplify -v                     
zsh: command not found: amplify

まぁ。ここでできたらつまらないですよね。(強がり)

###次にターミナル、Macの再起動!

これでも駄目だったので

###Node npm入れ直す

そして、、、!

sudo npm install -g @aws-amplify/cli

これなら行けたっしょ。

amplify -v                     
zsh: command not found: amplify

うわっ、デジャブやん。。(軽く震え)

他にも色々試したのですが、日が暮れるのですっ飛ばして結論。

alias amplify="/Users/user/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify"

インストールした時に出てきたpathを指定してaliasするだけ!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?