版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sunhaobo1996/article/details/80340513
本文基于
https://www.cnblogs.com/netaddi/p/5608856.html
只需要输入
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
即可。