Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React app not Building shows code ELIFECYCLE

This error is shown whenever i try to build the project. Can someone please help me with this

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: react-scripts build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\uniqf\AppData\Roaming\npm-cache_logs\2020-09-02T16_41_30_577Z-debug.log The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm run build" terminated with exit code: 1.

like image 621
Yogesh Bhattarai Avatar asked Feb 21 '26 15:02

Yogesh Bhattarai


1 Answers

You can try the following -

  • Delete the node_modules folder
  • Delete the package-lock.json if it exists
  • run npm install in the terminal
like image 157
abh80 Avatar answered Feb 24 '26 03:02

abh80



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!