Covid19india-react: Error in Build

Created on 1 Oct 2020  路  4Comments  路  Source: covid19india/covid19india-react

I get below error in build, but after I remove this cp build/index.html build/404.html from package.json its work fine.
```

export default placeholder;
'cp' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postbuild: npm run compress_maps && cp build/index.html build/404.html && npm run build:swnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postbuild 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:\Usersxxx\AppData\Roaming\npm-cache_logs\2020-10-01T20_37_08_544Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] predeploy: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] predeploy 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:\Usersxxx\AppData\Roaming\npm-cache_logs\2020-10-01T20_37_08_593Z-debug.lo
```g

Review Needed

Most helpful comment

@alisolanki this happens when you're building on Windows, npm will throw an exception as the cp command doesn't exist in Windows. Simply replace cp with copy

Better Explanation

All 4 comments

@alisolanki this happens when you're building on Windows, npm will throw an exception as the cp command doesn't exist in Windows. Simply replace cp with copy

Better Explanation

@parshnt *It is: @alkuhlani not @alisolanki

Already I used copy instead of cp, and still happend, by the way I copied it manually.

Thank you.

@alisolanki my bad :p

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srikrishnamoorthis picture srikrishnamoorthis  路  4Comments

iDhruv22 picture iDhruv22  路  6Comments

tshrwbl picture tshrwbl  路  5Comments

amita-kapoor picture amita-kapoor  路  3Comments

jeremyphilemon picture jeremyphilemon  路  6Comments