Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an official nuget package for Angular 2?

I'm currently working in a work environment where I do not have access to npm / node. The npm download location is actually blocked so I can't get any packages.

I want to build an Angular 2 site. As I can't access npm, I want to use Nuget to get the files. Although I can see the Angular 1 packages, I cannot seem to see any Angular 2 packages. Is there one for Nuget?

Also, is populating the node_module folder and compiling the Typescript the only thing that npm does for Angular? If I can just get a copy of the node_module folder (from outside work) and get TypeScript working in my solution, can I basically bypass the need for npm?

like image 526
Diskdrive Avatar asked Apr 05 '16 09:04

Diskdrive


People also ask

Is NuGet like npm?

NuGet is one of several package managers, like Node Package Manager (NPM) for JavaScript and Maven for Java. Package Managers simplify and automate library consumption.

How do I install angular modules?

You can download and install these npm packages by using the npm CLI client, which is installed with and runs as a Node. js® application. By default, the Angular CLI uses the npm client. Alternatively, you can use the yarn client for downloading and installing npm packages.

What is package JSON in angular?

package. json file locates in project root and contains information about your web application. The main purpose of the file comes from its name package, so it'll contain the information about npm packages installed for the project.


Video Answer


1 Answers

In short; No.

You can see a list of all available NuGet package versions here, with the most recent being 1.5.3.

Even performing a generic search shows most recent versions as 1.5.3.

Sometimes they'll have beta versions of packages available that you can install with a command similar to: Install-Package EntityFramework -Version 6.1.3-beta1 -Pre, but it doesn't appear as if they have created any pre-release packages.

So, as @Michal Dymel mentioned, you could get it from a CDN or some other location.

like image 160
drneel Avatar answered Oct 27 '22 07:10

drneel