![无法在 ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com 上执行 node.js](https://linux22.com/image/760961/%E6%97%A0%E6%B3%95%E5%9C%A8%20ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com%20%E4%B8%8A%E6%89%A7%E8%A1%8C%20node.js.png)
我正在尝试使用现有的 EC2 实例创建 AWS Cloud9 环境,但创建失败,并出现以下屏幕截图中所示的错误:
到目前为止我已经尝试过:
正如本文所建议的邮政,我尝试安装 nodejs-legacy 但遇到以下错误:
答案1
我可以通过安装来解决这个问题nodejs-legancy使用以下命令:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
和
sudo apt-get install -y nodejs nodejs-legacy