clon远程项目后,npm install 报错——cb() never called!This is an error with npm itself. Please report this error at: npm ERR! <https://npm.community>

报错信息

       

场景

       这个报错出现的场景是 clon 完 jetlinks-ui-antd 之后,下载依赖时产生的报错
       本机是 window 10,vue 项目

解决

  1. 删除 nodel_module 文件
  2. 如果有 package.lock.json 文件也删除
  3. 升级 npm :npm install npm -g
  4. 使用 cnpm 进行安装
  5. 如果未安装该命运应先进行安装:npm install -g cnpm --registry=https://registry.npm.taobao.org
  6. 安装:cnpm install

结果


       虽然有报红,但是最后有个小对勾就是可以的,最后启动你的项目试试看能不能启动吧!
       我的项目是输入 npm start
       
       启动成功!

原文地址:https://www.cnblogs.com/Monster-su/p/14793423.html