Install nodejs and npm in Pop!_OS
Start by updating the packages list by typing:
shell
$ sudo apt update
Install nodejs
using the apt
package manager:
shell
$ sudo apt install nodejs npm
The Node.js executable from the Ubuntu repositories is named nodejs
instead of node because of a conflict with another package.
To launch the REPL Terminal: (Pressing Ctrl + C
twice exits!)
shell
$ nodejs
To verify the installation execute the following command:
shell
$ node -v && npm -v