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! covid-19-world@0.1.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the covid-19-world@0.1.0 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:UsersuniqfAppDataRoamingnpm-cache_logs2020-09-02T16_41_30_577Z-debug.log The terminal process “C:WINDOWSSystem32WindowsPowerShellv1.0powershell.exe -Command npm run build” terminated with exit code: 1.
Advertisement
Answer
You can try the following –
- Delete the
node_modules
folder - Delete the
package-lock.json
if it exists - run
npm install
in the terminal