Anil Kumar
Anil Kumar

Reputation: 100

How to launch Angular 2 Application locally as npm start doesnot working

I followed the below mention link to setup local environment and launch application.

https://angular.io/docs/ts/latest/guide/setup.html

When I used npm start command to launch application, it throws an error. In the guide it is mentioned that npm start doesnot work

'npm start fails in Bash for Windows which does not support networking to servers as of January, 2017.'

Then can you please let me know how can I launch the Angular application.

Upvotes: 0

Views: 986

Answers (3)

Vishal
Vishal

Reputation: 10964

Which IDE are you using. I use VS Code and there you have integrated terminal console. Run npm start and it should run your application.You can also use command prompt inside your project folder where package.json resides to start your application by running cmd npm start.

Upvotes: 1

DeborahK
DeborahK

Reputation: 60596

Run it in the console ... not in "Bash for windows".

I successfully run my Angular apps with npm start.

Upvotes: 1

brijmcq
brijmcq

Reputation: 3418

Alternative solution is to use the angular-cli, which I think the best way to start a new angular project. Here's the link in the official docs. Creating new projects in angular-cli is simple as this

ng new app-name

Upvotes: 0

Related Questions