react项目启动报错:error code ELIFECYCLE/error errno 1/error [email protected] start: `node scripts/start.js/Exit

今天碰到一个错误,如下:

Cannot destructure property `compile` of 'undefined' or 'null'

20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `node scripts/start.js`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
 

react项目启动报错:error code ELIFECYCLE/error errno 1/error demo@0.1.0 start: `node scripts/start.js/Exit_第1张图片

在网上找了几种方法,在这里汇总一下:

1:

Cleaning Cache and Node_module are not enough. Follow this steps:

  • npm cache clean --force
  • delete node_modules folder
  • delete package-lock.json file
  • npm install

2:修改node_modules文件夹权限

 

然鹅,都没有什么作用,还是回滚版本解决的,,,,,虽然治标不治本

你可能感兴趣的:(react项目启动报错:error code ELIFECYCLE/error errno 1/error [email protected] start: `node scripts/start.js/Exit)