更新时间:2023-08-01 GMT+08:00
NPM构建失败,但不显示错误日志
问题现象
Npm构建失败,但不显示错误日志,异常信息如下:
原因分析
在构建脚本中,设置了出现错误时,直接退出构建。
处理方法
检查构建脚本中对错误情况的处理,删除“process.exit(1)”等可能导致构建出错时直接退出的情况。
父主题: 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