Running npm run serve-build on my Windows machine produces an error "cp is not recognized as an internal or external command, operable program or batch file."
The fix for this is to change this line in package.json:
"build:nodeserver": "ng build && cp node_server/* dist",
to:
"build:nodeserver": "ng build && copy node_server\\* dist\\*",
@b4youleap Thank you for pointing this out! If you want Linux functionality on a Windows machine, cygwin is a solid option: http://cygwin.com/. Installing this would allow you to use commands such as cp.
Running
npm run serve-build
on my Windows machine produces an error "cp is not recognized as an internal or external command, operable program or batch file."The fix for this is to change this line in package.json:
"build:nodeserver": "ng build && cp node_server/* dist",
to:"build:nodeserver": "ng build && copy node_server\\* dist\\*",