我已经启动了Ubuntu AWS EC2实例,并想安装Node 10.13.0。
我检查了以下内容:
sudo apt-get update
sudo apt-cache madison nodejs
这仅列出8.x的版本。所以我这样做:
curl -sL https://deb.nodesource.com/setup_10.13.0 | sudo -E bash -
哪个给我这个错误:
bash: line 1: html: No such file or directory
bash: line 2: syntax error near unexpected token `<'
'ash: line 2: `<head><title>404 Not Found</title></head>
在线文档说只需这样做:
sudo apt-get install nodejs
但这不能让我指定版本号。我什至尝试过:
sudo apt-get install nodejs=10.13.0
哪个给我这个错误:
Version '10.13.0' for 'nodejs' was not found
如何通过几个简单的命令实现这一目标?请注意,LTS构建当前为10.14.0,我想要10.13.0。