1.首先安装n模块 npm install n 2.查看node版本 3.使用相应版本 n use 18.16.1 4.针对没有使用过的node版本可以去指定版本号安装,如: n 0.0.1 5直接使用最新版本 n latest