一、更新npm

// 将npm更新到最新版本
npm install npm@latest -g

 

二、更新nodejs

1. 首先通过 where node 命令找到nodejs的安装路径

 Windows下更新 npm 和 nodejs

2. 然后去官网下载最新的nodejs进行安装,安装路径与你之前的安装路径相同,覆盖掉之间的版本

 

相关文章:

  • 2021-11-27
  • 2021-07-01
  • 2021-07-30
  • 2021-09-28
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案