步骤1:清除nodejs的缓存:sudo npm cache clean -f
步骤2:使用npm安装n模块:sudo npm install -g n

步骤3:查看node的版本:npm view node versions

步骤4:
升级到指定版本:sudo n 14.19(比如14.19)
升级到最新版本:sudo n latest
升级到稳定版本:sudo n stable

步骤1:清除nodejs的缓存:sudo npm cache clean -f
步骤2:使用npm安装n模块:sudo npm install -g n
步骤3:查看node的版本:npm view node versions
步骤4:
升级到指定版本:sudo n 14.19(比如14.19)
升级到最新版本:sudo n latest
升级到稳定版本:sudo n stable
本文标题:Mac升级node版本
本文链接:https://www.haomeiwen.com/subject/eofzprtx.html
网友评论