1. 清除缓存信息 sudo npm cache clean -f 2. 下载node安装包 sudo npm install -g n 3. 升级node到稳定版本 sudo n stable 4. 重启服务器 5. 查看当前node版本 node -v