简体   繁体   中英

Update to Node version 16 without installing package

I am trying to update my node version to 16.

Here what I am doing:

--installing nvm
sudo apt install curl 
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash 

-- nvm installer script creates environment entry to login script of the current user.
source ~/.profile  

--node 
nvm install 16
nvm use 16

What bothers me, is I need to install a package called nvm. Is it possible to update node without installing a package?

Advance Thanks,

Here my solution:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM