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: 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

npm not found in zsh

echo 'PATH="~/.nvm/versions/node/v12.22.1/bin:$PATH"' >> ~/.zshrc
Comment

PREVIOUS NEXT
Code Example
Shell :: cambiar nombre branch git 
Shell :: docker kill running container(s) 
Shell :: git showing ignored file modified 
Shell :: installing redis on mac 
Shell :: ubuntu start black screen 
Shell :: install maven dependencies 
Shell :: download docker desktop ubuntu 
Shell :: reload .bashrc 
Shell :: ssh timeout 
Shell :: flutter android sdk manager not found 
Shell :: error: src refspec develop does not match any 
Shell :: ionic capacitor android 
Shell :: mongodb install kali linux 
Shell :: send file netcat 
Shell :: add user via drush drupal 8 
Shell :: how to install pytorch 0.4.1 
Shell :: bash if set variable 
Shell :: Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted 
Shell :: install redash ubuntu 20.04 
Shell :: Host key verification failed. fatal: Could not read from remote repository. 
Shell :: debian install ping 
Shell :: php extension php.ini 
Shell :: how to upgrade to wsl 2 
Shell :: batch file 
Shell :: x11 development libraries 
Shell :: git undo deleted local branch 
Shell :: how to watch a log file in linux 
Shell :: github api fetch 
Shell :: genymotion install ubuntu 
Shell :: mkdir rm folder 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =