nodejs安装
- 以 sudo 用户身份运行下面的命令,下载并执行 NodeSource 安装脚本:
curl -sL http<font style="color:rgb(152, 104, 1);">s:</font>//<font style="color:rgb(166, 38, 164);">deb</font>.nodesource.<font style="color:rgb(166, 38, 164);">com</font>/setup_16.<font style="color:rgb(166, 38, 164);">x</font> | sudo -E bash -
ls /var/lib/apt/lists |grep nodesource
# 检查源
apt-cache madison package nodejs
# 查看版本
apt install nodejs && node --verison && npm --version
yarn安装
npm install -g npm
# 升级下Npm
npm install -g yarn
# 安装yarn