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

nvm update

updates nvm nodejs version; 
Comment

update npm version using nvm

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

nvm update

#!/bin/sh

set -e

cd ~/.nvm

git fetch --tags
TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Checking out tag $TAG..."
git checkout "$TAG"

source ~/.nvm/nvm.sh
Comment

PREVIOUS NEXT
Code Example
Shell :: install dpkg vscode 
Shell :: installing sonarqube on ubuntu 
Shell :: store env file in firebase functions 
Shell :: git remove file from being tracked 
Shell :: ngrok sing up 
Shell :: materila ui 
Shell :: what is bash 
Shell :: set default editor bash 
Shell :: copy to clipboard over ssh 
Shell :: bash script change directory run a command 
Shell :: uname command 
Shell :: how to clone all git repositories 
Shell :: delete file with cmd 
Shell :: wget 
Shell :: Start MySQL FreeBSD 
Shell :: conda install minio 
Shell :: git pull new branch from remote 
Shell :: dockerfile env 
Shell :: replace a newline using sed linux bash 
Shell :: check for installed chaincode 
Shell :: install bravado_core 
Shell :: git push 
Shell :: create a tunnel via permanently 
Shell :: sqliteman linux 
Shell :: brew install older version opencv 
Shell :: install pgadmin ubuntu 20.04 
Shell :: kali nethunter linux install auf windows 
Shell :: turnoff swap 
Shell :: install joplin using snap 
Shell :: linux modsecurity allow googlebot 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =