無法在 ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com 上執行 node.js

無法在 ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com 上執行 node.js

我嘗試使用現有的 EC2 執行個體建立 AWS Cloud9 環境,但失敗並出現以下螢幕截圖中所示的錯誤:

在此輸入影像描述

到目前為止我已經嘗試過:

正如本文中所建議的郵政,我嘗試安裝nodejs-legacy,但遇到了以下錯誤:

在此輸入影像描述

答案1

我能夠透過安裝解決這個問題Nodejs 遺留使用以下命令:

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

sudo apt-get install -y nodejs nodejs-legacy

相關內容