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
@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
Most helpful comment
@alisolanki this happens when you're building on Windows, npm will throw an exception as the
cpcommand doesn't exist in Windows. Simply replacecpwithcopyBetter Explanation