Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Won't build on Windows #50

Open
aschworer opened this issue Dec 22, 2021 · 1 comment
Open

Won't build on Windows #50

aschworer opened this issue Dec 22, 2021 · 1 comment

Comments

@aschworer
Copy link

ng build --prod && cp -r ../appengine/* ../webapp/
.....
'cp' is not recognized as an internal or external command,
[INFO] operable program or batch file.
[INFO] npm ERR! code ELIFECYCLE
[INFO] npm ERR! errno 1
[INFO] npm ERR! client@0.0.0 build: ng build --prod && cp -r ../appengine/* ../webapp/
[INFO] npm ERR! Exit status 1
[INFO] npm ERR!
[INFO] npm ERR! Failed at the client@0.0.0 build script.
[INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@artshish
Copy link

Hey, @aschworer
There is no 'cp' on Windows, you should use 'xcopy' instead.
You could fix this error by editing package.json file.
You need to replace copy command part (cp -r ../appengine/* ../webapp/) with Windows equivalent:
xcopy ..\appengine\* ..\webapp\ /E /H /C /I /Y

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants