Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I update Node.js using cmd?

Update Node.js version using command prompt
My installed version is

v14.15.1

LTS version is

v14.17.1

Using below two commands

install npm

npm install -g npm stable

install node using

npm install -g node

using command also but the version is not updated

Screenshot of  command Prompt

like image 425
Sarthak Raval Avatar asked Apr 24 '26 06:04

Sarthak Raval


1 Answers

its Works

1. sudo npm cache clean -f

2. sudo npm install -g n

3. sudo n stable

stabilize version installed

like image 181
Sarthak Raval Avatar answered Apr 25 '26 21:04

Sarthak Raval



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!