zsh: command not found: amplify

0

Hello,

I have installed npm install -g @aws-amplify/cli with and without sudo. I am still getting the error that amplify is not found.
aws version: aws-cli/1.18.97 Python/2.7.15 Darwin/18.7.0 botocore/1.17.20
node: v12.10.0
npm: v6.10.3

I am using MacBook Pro and VSCode.

Thank you in advance for any guidance you can offer.

Please advise,

Lisa

reinhal
已提問 4 年前檢視次數 3068 次
1 個回答
0

Try printing out your PATH? It sounds like the global npm modules aren't in your PATH.

I think you can also try doing it by running it through npx.

npx amplify

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南