zsh:找不到命令:npm
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
找不到zsh命令
source ~/.bash_profile
zsh:找不到命令:nvm
brew reinstall nvm
zsh:找不到命令: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
zsh:找不到命令
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
zsh:找不到命令:nvm
# NVM Stuff
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"