Linux安装Node.js环境

常规安装 以安装v12.x.x版本为例 1 2 3 4 5 6 7 #Ubuntu/Debian curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - apt update && apt install -y nodejs #CentOS/RedHat curl --silent --location https://rpm.nodesource.com/setup_12.x | sudo bash - yum update && yum install -y nodejs 然后执行node -v与npm -v查看是否安装成功 NVM安装 Node Version Manager - NVM 一款由 bash 写的 NodeJS 版本管理器 下载 1 2 3 4 5 curl -o- https://raw....

2019-07-26 2 min 220 words