我需要运行 nodejs v10.14。我目前运行的是 8.16.0 版。我找到了一些我遵循的说明,但它会导致错误(见下文)。
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 …Run Code Online (Sandbox Code Playgroud) nodejs ×1