更新时间:2023-07-20 GMT+08:00
npm cb() never called
问题现象
执行Npm构建任务时,日志报如下异常信息:
原因分析
NPM缓存发生异常,需要清理缓存。
处理方法
编辑任务,在命令行npm install命令之前添加命令npm cache clean -f,然后保存任务重新执行。
父主题: Npm构建
Npm构建 所有常见问题
- JavaScript heap out of memory
- Unexpected end of JSON ...
- enoent ENOENT: no such file or directory
- Module not found: Error: Can't resolve ...
- NPM构建失败,但不显示错误日志
- npm cb() never called
- gyp ERR! stack Error: EACCES: permission denied
- eslint: error 'CLODOP' is not defined
- node-sass下载失败
- error: could not write config file
- npm构建耗时且安装依赖缓慢
- 找不到依赖版本
more