Amplify-cli: command not found: amplify cli on mac

Created on 13 Aug 2020  路  7Comments  路  Source: aws-amplify/amplify-cli

I've run npm install -g @aws-amplify/cli and sudo npm install -g @aws-amplify/cli --unsafe-perm=true and on my mac its not reading amplify as a command and continues to give me an error. I've uninstalled node and npm and reinstalled it but still the same result. I'm not sure if this is just a mac problem.

Currently I'm running node version v14.8.0 and npm version 6.14.7

platform question

Most helpful comment

Hi @sgr0691 can you make sure that the global node modules bin folder is on your path? Usually this would be usr/local/bin. You can run npm root -g to see where npm is configured to install global modules. You'll get a path like <some path>/lib/node_modules and you'll need to make sure that <some path>/bin is on your path

All 7 comments

I updated to the node and npm version. Are you using nvm? I was able to run amplify status in a project. Are you able to use other npm-published CLI applications?

I'm currently not using nvm but I'm using npm & sudo npm. Should I use nvm instead? I was able to successfully use aws cli but just not amplify cli.

Hi @sgr0691 can you make sure that the global node modules bin folder is on your path? Usually this would be usr/local/bin. You can run npm root -g to see where npm is configured to install global modules. You'll get a path like <some path>/lib/node_modules and you'll need to make sure that <some path>/bin is on your path

Hi @edwardfoyle the path is /usr/local/lib/node_modules

@sgr0691 In that case you'll need to make sure that /usr/local/bin is on your path.

@edwardfoyle thank you for helping me with this. Amplify CLI is working on my computer

@edwardfoyle Thank you. 馃槉

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ReidWeb picture ReidWeb  路  3Comments

ffxsam picture ffxsam  路  3Comments

adriatikgashi picture adriatikgashi  路  3Comments

gabriel-wilkes picture gabriel-wilkes  路  3Comments

davo301 picture davo301  路  3Comments