5

I want to try angular 2 for VS 2015 but the first prerequisite is node.js.

If I understand correct, I need node.js as webserver and npm to download package?

Can I do the same with IIS and VS nu-get?

6
  • Node (using npm) is an easy way to get dependent packages. Also since Agular2 is a front-end framework, you can host it on any webserver. Commented Aug 23, 2016 at 18:37
  • @crashmstr So the answer is I need node.js because the packages? Commented Aug 23, 2016 at 18:39
  • Installing node.js is typical so you can use npm to install packages to use in your Angular site. Some unit test frameworks may use node to run in as well. Commented Aug 23, 2016 at 18:40
  • Possible duplicate of Is it possible to use Angular2 or Aurelia with IIS and without having node.js and NPM installed? Commented Aug 23, 2016 at 18:43
  • 1
    @crashmstr what is the not typical way? I used to work with nuget package. so going back to command line isnt my first choice. And I just download/install node.js and didnt install the latest version or the recomend npm version. So not really impress so far. Commented Aug 23, 2016 at 18:45

2 Answers 2

1

You can develop Angular 2 apps just fine in Visual Studio (with some configuration, which can be painful). You can also serve Angular 2 apps in IIS (or any other web server for that matter). However to manage the packages Angular 2 uses, and to provide a light-wight web server you can use in development, using NodeJs is the easiest and the recommended way.

NuGet and npm are similar products in the fact that they both provide a way to package files and create software packages. NuGet runs separately through the command line or inside VisualStudio, while npm comes with NodeJS and is Node's built in package manager that you cannot run without having NodeJS.

Here is the Visual Studio Quick Start provided by the Angular team: https://angular.io/docs/ts/latest/cookbook/visual-studio-2015.html

Sign up to request clarification or add additional context in comments.

Comments

0

I develop in Visual Studio 2015 all the time without NPM. I have my systemjs.config set to load angular, rxjs, ng-bootstrap and others from CDN at unpkg.com. Few quirks but it works just fine for development.

Comments

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.