Ubuntu 18.04 安装 node.js

顺序执行下面的命令:

curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs

ok了。查看安装的版本:

node -v
npm -v

猜你喜欢

转载自blog.csdn.net/henryhu712/article/details/85283311