在Ubuntu 18.04上安装Node版本10

时间:2020-01-19 21:07:12

标签: node.js ubuntu curl ubuntu-18.04

我尝试使用-

在Ubuntu 18.04上安装Node版本10。

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash

sudo apt install nodejs

但这会继续安装Node v 8.10,而不是版本10。 另外,命令
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash
给出错误:

Err:5 http://packages.cloud.google.com/apt cloud-sdk InRelease 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
Reading package lists... Done                                  
W: GPG error: http://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
E: The repository 'http://packages.cloud.google.com/apt cloud-sdk InRelease' is not signed.
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

任何人都可以告诉我安装Node version 10的确切方法。

0 个答案:

没有答案