Node——npm ERR! cb() never called!

前言

今日安装依赖的时候突然报错

步骤

  1. 管理员身份运行cmd并清除npm的缓存
C:\Users\WangYang>npm cache clean -f
npm WARN using --force I sure hope you know what you are doing.
  1. 安装n模块
C:\Users\WangYang>npm install -g n --force
npm WARN using --force I sure hope you know what you are doing.
C:\Users\WangYang\AppData\Roaming\npm\n -> C:\Users\WangYang\AppData\Roaming\npm\node_modules\n\bin\n
+ n@6.7.0
added 1 package from 4 contributors in 0.799s
  1. 进入到项目,重新安装依赖
E:\Project\SCRM-APP-H5>cnpm install
/ [23/75] Installing y18n@^3.2.1
.....
.....
√ All packages installed (1394 packages installed from npm registry, used 35s(network 20s), speed 253.35kB/s, json 1147(2.98MB), tarball 2.07MB)
上一篇:Scala(四)【集合基础入门】


下一篇:Cypress系列(18)- 可操作类型的命令 之 点击命令