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
demandé il y a 4 ans3068 vues
1 réponse
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

répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions