Horje
zsh: command not found: npm Code Example
zsh: command not found: nvm
brew reinstall nvm
Source: github.com
zsh: command not found: nvm
# NVM Stuff
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
Source: github.com
zsh: command not found: npm
export NVM_DIR=~/.nvm
 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
zsh: command not found
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
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
zsh: command not found: node
open ~/.zshrc
// add the following to the beginning of the file:
source /Users/YOUUSERNAME/.bash_profile
// restart terminal




Shell

Related
increment variable bash Code Example increment variable bash Code Example
Command `npm install --save --save-exact react-native` failed Code Example Command `npm install --save --save-exact react-native` failed Code Example
Failed to start firewalld - dynamic firewall daemon. Code Example Failed to start firewalld - dynamic firewall daemon. Code Example
docker run ubuntu image bash Code Example docker run ubuntu image bash Code Example
linux delete files older than specific date Code Example linux delete files older than specific date Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10