1、nodejs & npm 安装
执行这个脚本会安装node16.x的版本,脚本在myshells文件夹下。
- 脚本名字:install_nodejs.sh
#!/bin/bash
# 安装更新Node.js和Npm所需要的软件
echo "update apt packge ..."
sudo apt update
# 添加NodeSource APT存储库和用于验证软件包的PGP密钥
echo "add NodeSource APT is PGP"
sudo apt install apt-transport-https curl ca-certificates software-properties-common
echo