更新apt-get再安装,更新时间比较久,看网速,中间有一些确认步骤
shell
22 apt-get update
23 apt-get upgrade
24 apt-get install nodejs
25 node
26 npm
27 apt-get install npm