I need to run nodejs v10.14. I am currently running version 8.16.0. I have found some instructions which I follow but it causes errors (see below).
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
This causes the following output:
## Installing the NodeSource Node.js 10.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:29 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu bionic InRelease
Err:31 http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Err:32 http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting
Any idea how I can get nodejs v10.14 (or higher) installed?
your errors seem to be issues with getting your APT cache established -- The links in the curl are not responding valid (See the 404 error in the error stack) ...
Not sure this will actually work if its a connectivity issue, but You might try removing the nodejs installation, updating your packages and reinstalling nodejs 12.x with teh 12.x curl, for example.
To Remove and Reinstall Node & NPM:
First remove node:
Then update & upgrade:
Then get your desired Node version:
And then install your new node version:
That should do it. You can check your current version by:
Hope this helps!