Reputation: 60528
I am using Visual Studio 2015 with an ASP.NET 4.x project. I created an Angular 2 application with a package.json that includes the new Angular 2 RC scoped packages (@angular/common, @angular/core, etc). When I use the right-click restore packages on this package.json file I get in the Output console:
npm http 404 https://registry.npmjs.org/angular/compiler
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'angular/compiler' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'product-management'
Any ideas on how to restore these scoped packages in Visual Studio 2015? (I know how to npm install from the command line ... I'd like to know how to do it without using the command line.)
Upvotes: 2
Views: 1308
Reputation: 1
I had similiar issue, despite the fact of correct order in "external web tools".
Try changing the npm
version in your package.json
file for at least 3.0.0
. For me it worked.
Upvotes: 0
Reputation: 1372
It happens because external web tools OPTIONS are pointing to wrong (outdated) NPM. Move so that it refers PATH.
Please refer this link to customize external web tools in VS 2015
Restart Visual Studio to make it working.
Upvotes: 2