zsh: command not found: aws code example
Example 1: zsh: command not found: aws
export PATH=~/.local/bin:$PATH
Example 2: zsh: command not found: npm
# first make sure where is the npm installed
$ which npm
# output: /home/sallo/.nvm/versions/node/v14.15.3/bin/npm
# now open the file ~/.zshrc and add the below line at the end.
# change the path in cause you have different
export PATH=$HOME/.nvm/versions/node/v14.15.3/bin/npm:$PATH
# save the file and open new terminal
Example 3: aws terminal in mac
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws