Matt-Dionis / tweet-dashboard

An Angular CLI project with Express server, Socketio, and Twitter API integration for section 8 of Building Data Visualizations with D3 and Angular
4 stars 8 forks source link

Windows-specific error #1

Open b4youleap opened 7 years ago

b4youleap commented 7 years ago

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\\*",

Matt-Dionis commented 7 years ago

@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.