'cp' is not recognized as an internal or external command,
See original GitHub issue‘cp’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv “D:\dev\nodejs\node.exe” “D:\Dev\nodejs\node_modules\npm\bin\npm-cli.js” “run” “build”
npm ERR! node v6.3.1
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! reactjs-basics@1.0.0 build: webpack -d && cp src/index.html dist/index.html && webpack-dev-server --content-base src/ --in line --hot
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactjs-basics@1.0.0 build script ‘webpack -d && cp src/index.html dist/index.html && webpack-dev-server --co
ntent-base src/ --inline --hot’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the reactjs-basics package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack -d && cp src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs reactjs-basics
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls reactjs-basics
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! d:\work\reactjs\basic\npm-debug.log
npm ERR! Windows_NT 6.1.7601
npm ERR! argv “D:\dev\nodejs\node.exe” “D:\Dev\nodejs\node_modules\npm\bin\npm-cli.js” “start”
npm ERR! node v6.3.1
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! reactjs-basics@1.0.0 start: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactjs-basics@1.0.0 start script ‘npm run build’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the reactjs-basics package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs reactjs-basics
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls reactjs-basics
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! d:\work\reactjs\basic\npm-debug.log
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:20 (1 by maintainers)
Top GitHub Comments
if you’re running windows you have to replace “cp” with “copy”, as far as i know
I used following for windows and it worked:
webpack -d && copy src\\index.html dist\\index.html && webpack-dev-server --content-base src --inline --hot