Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

update npm with nvm

# update nvm remote
nvm ls-remote

# install latest npm or npm lts
nvm install-latest-npm
nvm intall --lts

# select required version of npm, I always use the long term supported version
nvm use --lts
Comment

nvm update node

nvm install latest
Comment

Properly upgrade node using nvm

nvm install stable --reinstall-packages-from=current
Comment

update node with nvm

# With NVM

yay -S nvm

echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
exec $SHELL

nvm ls-remote

nvm install v18.1.0
Comment

how to update node version with nvm

nvm install "lts/*" --reinstall-packages-from="$(nvm current)"
Comment

update npm version using nvm

cd ~/.nvm/versions/node/v4.2.2/lib
npm install npm
Comment

PREVIOUS NEXT
Code Example
Shell :: nodemon install 
Shell :: brew install vlc 
Shell :: jupyterlab documentation 
Shell :: install heroku cli wsl 
Shell :: check if mongodb is installed 
Shell :: how to reload docker nginx 
Shell :: update composer globally 
Shell :: gnome disk utility ubuntu 
Shell :: restart-Service sshd 
Shell :: expo keystore 
Shell :: how to know status psql in linux 
Shell :: docker clear cache 
Shell :: clone a conda environment 
Shell :: how to delete services in kubernetes 
Shell :: bash return n characters after match 
Shell :: ufw delete rule 
Shell :: edit hosts file mac terminal 
Shell :: install discord on ubuntu 
Shell :: linux decode base64 terminal 
Shell :: install angular animation 10.0.12 
Shell :: git remove commit before push 
Shell :: how to install laravel on mac 
Shell :: firebase commands 
Shell :: how to commit code to bitbucket first time 
Shell :: update font cache linux 
Shell :: remove all files with extension bash 
Shell :: get public ip linu 
Shell :: -bash: git: command not found 
Shell :: Ubuntu how to install jetbrains toolbox app 
Shell :: speedtest cli ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =