apt – How to install npm with LTS version of Node.js?
I don’t understand why there is no simple way or explanation in the entire web on how to do this. sudo apt install npm
installs npm
with Node version 10.19.0
, but I want to install the LTS version (16.13.0
)
I tried following these steps to update to the LTS version of Node:
npm install n -g
n stable
And it does seem to install the LTS version, but the old version is not removed, and Ubuntu still uses version 10.19.0
So how can I either install npm with LTS Node, or at least install the LTS version and make Ubuntu use this version and not the older?
Read more here: Source link