reactjs-basics icon indicating copy to clipboard operation
reactjs-basics copied to clipboard

'webpack' is not recognized as an internal or external command,

Open rohitchaudhary701 opened this issue 6 years ago • 1 comments

[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

rohitchaudhary701 avatar Jan 04 '19 14:01 rohitchaudhary701

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" }

Katanis avatar Jul 13 '19 19:07 Katanis