reactjs-basics
reactjs-basics copied to clipboard
'webpack' is not recognized as an internal or external command,
[email protected] build D:\My React\ReactApp\reactjs-basics webpack -d && cp src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot
'webpack' 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] build: webpack -d && cp src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot
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\rohit\AppData\Roaming\npm-cache_logs\2019-01-04T14_16_53_709Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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\rohit\AppData\Roaming\npm-cache_logs\2019-01-04T14_16_53_756Z-debug.log
On Windows use back slashes \ "scripts": { "start": "npm run build", "build": "webpack -d && copy src\index.html dist\index.html", "build:prod": "webpack -p && copy src\index.html dist\index.html" }