Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Angular 2 with VS2015 Update 2 - getting npm -not installed error

I created an empty core 1.0 web app and added a package.json file copying the angular2 quick start package.json lines from this url.

I keep getting the message Dependencies - not installed and npm - not installed.

Does anyone know why this is happening? Do I have to actually install node.js on my PC in order for Visual Studio to be able to use it? Bower works perfectly...

like image 586
Blake Rivell Avatar asked May 19 '16 01:05

Blake Rivell


1 Answers

This issue is being tracked here: https://github.com/aspnet/Tooling/issues/479

Repointing Visual Studio to a different npm path will likely not make a difference - Visual Studio still seems to interpret a dependency on a package not supported on Windows as a breaking issue.

This is an IDE issue only. You can still build and run without resolving this problem.

But if you prefer to get rid of the not installed indicator, identify and remove the offending package then manually delete the node_modules folder, and re-save package.json.

like image 134
primalBlaze Avatar answered Nov 10 '22 17:11

primalBlaze