Skip to content
ROZ a.k.a. Aoi Emerauda edited this page Jul 30, 2024 · 10 revisions

I'm sure it works on node & npm

Install node and npm as follows.

sudo apt install nodejs npm -y

Install node version control tool "n"

sudo npm install n -g

Install node and npm

sudo n stable

Delete old nodejs and npm

sudo apt purge -y nodejs npm

Create symbolic link (Optional)

sudo ln -sf /usr/local/bin/node /usr/bin/node

sudo ln -sf /usr/local/bin/npm /usr/bin/npm

Check your node & npm version

node -v && npm -v

Try it!