1、安装npm apt install npm 2、安装 n 模块 n 模块是用来安装各种版本的 node 的一个工具。参数 -g 表示全局安装 npm install n -g 3、安装node n lts 相关文章: