我已经在实例中安装了列表中第二个操作系统的Amazon Linux 2 AMI (HVM), SSD Volume Type,并成功使用putty连接到它。
现在我想在我的服务器上安装node。
为此,我进入/var文件夹,然后运行以下命令。
为了解决这个问题,我需要执行以下命令:
现在我想在我的服务器上安装node。
为此,我进入/var文件夹,然后运行以下命令。
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
然后我遇到了这个错误。
## Populating apt-get cache...
+ apt-get update
bash: apt-get: command not found
Error executing command, exiting
为了解决这个问题,我需要执行以下命令:
跟随下面的命令。
1) apt-get update
2) sudo apt-get update
3) yum update
4) sudo yum update
我仍然遇到同样的问题。有人能帮助我吗?