In this tutorial, we are going to learn about how to fix the cp is not recognized as an internal or external command issue.
When we try to copy a file from one directory to another using the
cp command in windows os, we will see this type of error is displayed in our command line.
cp src\app.js public\app.js
'cp' is not recognized as an internal or external command,
operable program or batch file.
This error is occurred due to the
cp command is not available in windows os. It is only available in Linux based operating systems.
To fix the error, replace the
cp with windows
copy command and run it:
copy src\app.js public\app.js