Oh, well, that's because you didn't build your Angular app for deployment. Try running "npm build" if you're using one of the more popular packs. Then you'll get a "dist/production" directory or something similar - _that_ is the folder you need to serve.
(Or at the very least, look in your angular app for a folder "tmp", there might be a runnable app.) Basically, your compiled and built index.html should source the systemjs, then systemjs can take over and build from there. If you use "npm serve", the gulp task or whatever is serving the app does this on the fly for you. As long as your index.html doesn't run by simply opening the "index.html" file directly in chrome, you cannot serve this angular app - not with Node, but also not with nginx or apache or whatever. The build process needs to do all of its stuff first. On Fri, May 13, 2016 at 2:41 PM, Kyle Thomas <[email protected]> wrote: > When I do that I get: > > > cd server && node index.js > > info: Express server listening on 3001, in development mode > GET /node_modules/systemjs/dist/system.js 304 11.320 ms - - > GET /node_modules/es6-shim/es6-shim.js 304 8.689 ms - - > GET /node_modules/angular2/bundles/angular2-polyfills.js 304 10.217 ms - - > GET /node_modules/systemjs/dist/system.src.js 304 7.976 ms - - > GET /node_modules/rxjs/bundles/Rx.js 304 3.869 ms - - > GET /node_modules/angular2/bundles/upgrade.dev.js 304 2.991 ms - - > GET /node_modules/angular2/bundles/angular2.dev.js 304 1.407 ms - - > > And in my browser it doesn't seem to load the Angular2 files: > > > <https://lh3.googleusercontent.com/-LWwAaXsGGDU/VzXLZbWo0XI/AAAAAAAAABk/FhE-dCCjSCU-236rwTLdqlcGVRXJvnaEgCLcB/s1600/Screenshot%2Bat%2BMay%2B13%2B07-40-37.png> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/6cdW6_n0zeg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Zlatko -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
