0

My server-side web project doesn't use npm at all. Now I need to add a new page that needs more SPA feature. I wish to use the newer Angular2, not the old one.

I miss the way that Angular1 can include only a few js files to start working. I know system.js can do this, but all the samples use npm install to get node_modules. I also want to avoid this big and fat folder.

Can I write angular2 app without node_modules?

4
  • Already answered here: stackoverflow.com/questions/35623270/… Commented Jan 4, 2017 at 3:17
  • That one was answered at Feb 25 '16, using beta 2, which seems a lot different than current rtm version. I don't think that way is still working now. Or someone can update that answer to rtm version? Commented Jan 4, 2017 at 3:35
  • The angular developers have been very vocal about this: "Node.js and npm are essential to Angular development.". It is stated in multiple places in the repository and in the documentation. It definitely may be possible to unravel all the dependencies and install them on your own, but it will likely be very difficult, and most certainly not supported. Commented Jan 4, 2017 at 4:12
  • I'm trying about using an empty angular-cli project's webpack built js as my 'all angular2 bundled js', with app.component.ts/app.module.ts deleted. But facing "Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options." error. Commented Jan 4, 2017 at 8:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.