There is a problem with npm run build. Npm run start is normal.



< hr >

problem description

npm run build packaging command cp is not an internal command. It was available before, but it can"t be used recently

the environmental background of the problems and what methods you have tried

there is no problem with npm run start, but I don"t know what went wrong when copying files when I finally packed the package

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jun.20,2022

cp cannot be used in cmd, so change individual terminals.


windows copy commands are copy rather than cp.
you need to make sure that your commands are cross-platform


cp commands cannot be executed in cmd under window.
clipboard.png
it is recommended to switch to git bash terminals

.
Menu