smart-home-dashboard
smart-home-dashboard copied to clipboard
Won't build on Windows
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! [email protected] build:
ng build --prod && cp -r ../appengine/* ../webapp/
[INFO] npm ERR! Exit status 1 [INFO] npm ERR! [INFO] npm ERR! Failed at the [email protected] build script. [INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
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