Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to update npm on ubuntu

sudo npm install npm -g
Comment

upgrade nodejs and npm ubuntu

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
Comment

update npm ubuntu

sudo npm install npm -g

or

sudo npm install npm@latest -g

Example:

vagrant@homestead:~/code$ npm --version
6.14.17

vagrant@homestead:~/code$ sudo npm install npm -g
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm@8.19.2
added 7 packages from 2 contributors, removed 299 packages and updated 204 packages in 44.788s

vagrant@homestead:~/code$ npm --version
8.19.2
Comment

how to upgrade npm in ubuntu

curl https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | sh
Comment

PREVIOUS NEXT
Code Example
Shell :: github push local branch to remote 
Shell :: install chocolatey on windows 
Shell :: install cypress dev only 
Shell :: npm install mailchimp 
Shell :: Find last digit of a number in c# 
Shell :: list number of files in each folder linux 
Shell :: current time linux 
Shell :: gtk4 windows install 
Shell :: laravel version global upgrade 
Shell :: sublime text editor download for linux 
Shell :: appimage 
Shell :: setup systemd redis 
Shell :: flush the port 3001 
Shell :: view permissions linux 
Shell :: magento installer 
Shell :: linux bash temporary file 
Shell :: clone with ssh gitlab fatal: Could not read from remote repository. 
Shell :: Flatpak in linux 
Shell :: how to add opt/homebrew/bin to the PATH m1 macbook 
Shell :: remove a file from a commit 
Shell :: remove folder and contents linux 
Shell :: git submodule add 
Shell :: ubuntu remove application icon 
Shell :: make changes to a previous commit 
Shell :: pen() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied), client: 
Shell :: net speed monitor for ubuntu 
Shell :: commit git 
Shell :: install screen recorder linux 
Shell :: linux resize images in folder 
Shell :: show list of branches git 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =