By the time I write, the official versions of the repositories are:
$ node -v
v8.10.0
$ npm -v
3.5.2
They conflict with the packages "libcurl4-openssl-dev" and "libssl-dev".
The only output is to install the latest version going straight to the source.
In accordance with https://github.com/nodesource/distributions
Node.js v12.x:
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo apt-get install -y nodejs
Right now:
$ node -v
v12.8.0
$ npm -v
6.10.2
If by any chance you uninstalled the packages upstairs:
$ dpkg -s libcurl4-openssl-dev
So:
$ sudo apt-get install libcurl4-openssl-dev libssl-dev
tb have this error running: /usr/local/bin/npm : File or directory not found
– Sabrina