1.修改/etc/apt/sources.list,加入下面的内容:
deb https://deb.nodesource.com/node_12.x stretch main
deb-src https://deb.nodesource.com/node_12.x stretch main
2.然后执行:
sudo apt-get update
sudo apt-get install nodejs
2022-10-13 19:10:43
1.修改/etc/apt/sources.list,加入下面的内容:
deb https://deb.nodesource.com/node_12.x stretch main
deb-src https://deb.nodesource.com/node_12.x stretch main
2.然后执行:
sudo apt-get update
sudo apt-get install nodejs