npm 升级后出现这个问题

解决方案

进入

C:\Users\用户名\AppData\Roaming

  1. 删除 npm 和 npm-cache 文件夹
  2. 执行命令
npm cache clean --force