Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

zsh: command not found: npm

export NVM_DIR=~/.nvm
 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
Comment

zsh: command not found

PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: install vlc on ubuntu 20.04 
Shell :: pupeteer install ubuntu 
Shell :: bash while loop 
Shell :: ubuntu visual studio path 
Shell :: Merging multiple kube config files in to one 
Shell :: git remove chached 
Shell :: installing composer command line 
Shell :: git get commit author 
Shell :: kill force linux 
Shell :: nohup example 
Shell :: ssh copy 
Shell :: portainer ce install 
Shell :: nvm remove node version 
Shell :: git remove all files in gitignore 
Shell :: git force merge branch 
Shell :: install pgadmin4 ubuntu 20.04 
Shell :: grant current user access to /dev/kvm 
Shell :: requiring unknown module "1" 
Shell :: kubectl cheat sheet 
Shell :: how to remove git from vs code 
Shell :: installing snap store 
Shell :: macos brew 
Shell :: set up openssh 
Shell :: Sublime Text install Ubuntu/Debian 
Shell :: how to uninstall a software in ubuntu 
Shell :: Checking for an existing ssh key 
Shell :: WSL connect docker daemon to docker for windows 
Shell :: commit in git 
Shell :: run mutiple sass files at once 
Shell :: how to install git in ubuntu ? 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =