Skip to content

How to install nodejs and npm in any linux.

Published: at 01:10 AM

Firstly let’s check that the npm and nodejs in preinstalled or not by executing command in terminal.

sudo apt isntall nodejs npm -y
npm -v
node -v
sudo tar -C /usr/local --strip-components 1 -xf node-v18.12.1-linux-x64.tar.xz
node -v
npm -v