question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

42reactions
jobergnercommented, Aug 23, 2016

if you’re running windows you have to replace “cp” with “copy”, as far as i know

21reactions
medigvijaycommented, Jan 24, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

'cp' is not recognized as an internal or external command
I'm guessing if you're on Flashdevelop, you're running Windows, and if you're running windows, there's no such thing as the 'cp' command.
Read more >
'cp' is not recognized as an internal or external command
The error "'cp' is not recognized as an internal or external command, operable program or batch file" occurs when we use the cp...
Read more >
How to fix the 'cp' is not recognized as an internal or external ...
This error is occurred due to the cp command is not available in windows os. It is only available in Linux based operating...
Read more >
Learn how to solve the NPM error 'cp' is not recognized as an ...
Learn how to solve the NPM error 'cp' is not recognized as an internal or external command, operable program or batch file. Carlos...
Read more >
'cp' is not recognized as an internal or external command ...
cp is a unix command, so it doesn't work on Windows. You can use something like MINGW64 or other unix bash emulator, in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found