GreNodge
GreNodge

Reputation: 947

How to use AngularJS 2 without npm and Node.js?

The current versions of AngularJS 2 references always npm based configurations.

  1. Is it possible to manage a project of AngularJS 2 without npm?
  2. Is it possible to use AngularJS 2 in production statically without npm/Node.js

I already found answers for examples using the beta versions of AngularJS 2 usiing links like https://code.angularjs.org/2.0.0-beta.17/angular2-all.umd.min.js. But for the current versions (like 2.1.1) there is no support left. Every examples and documentations point to npm (like https://angular.io/guide/quickstart).

Upvotes: 17

Views: 12695

Answers (2)

GreNodge
GreNodge

Reputation: 947

I found after a long search this github Repository with a working example for my question 2.: https://github.com/mgechev/angular2-simple-build

Upvotes: 3

Bean0341
Bean0341

Reputation: 1697

You need the node_modules folder in your project, which you get from npm or you could find online somewhere. I have ran projects without npm a few times, rather than using npm and the npm start command you can just run your code with whatever editor you are usings start commands.

Upvotes: 1

Related Questions