ubuntu@ip-172-26-9-33:~/test_back$ sudo apt update Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Ign:4 https://pkg.jenkins.io/debian-stable binary/ InRelease Hit:5 https://pkg.jenkins.io/debian-stable binary/ Release Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Fetched 336 kB in 2s (204 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 133 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@ip-172-26-9-33:~/test_back$ ubuntu@ip-172-26-9-33:~/test_back$ ubuntu@ip-172-26-9-33:~/test_back$ ubuntu@ip-172-26-9-33:~/test_back$ ubuntu@ip-172-26-9-33:~/test_back$ curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
+apt-get update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease Ign:4 https://pkg.jenkins.io/debian-stable binary/ InRelease Hit:5 https://pkg.jenkins.io/debian-stable binary/ Release Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease Reading package lists... Done
+curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/focal/Release'
+curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
+echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x focal main' > /etc/apt/sources.list.d/nodesource.list
+echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x focal main' >> /etc/apt/sources.list.d/nodesource.list
apt-get update
for you...+apt-get update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease Get:4 https://deb.nodesource.com/node_14.x focal InRelease [4583 B] Ign:5 https://pkg.jenkins.io/debian-stable binary/ InRelease Hit:6 https://pkg.jenkins.io/debian-stable binary/ Release Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease Get:9 https://deb.nodesource.com/node_14.x focal/main amd64 Packages [773 B] Fetched 5356 B in 1s (7221 B/s) Reading package lists... Done
sudo apt-get install -y nodejs
to install Node.js 14.x and npm **sudo apt-get install gcc g++ make**