【发布时间】:2016-09-18 06:22:07
【问题描述】:
我正在使用带有 ASP.NET 4.x 项目的 Visual Studio 2015。我创建了一个带有 package.json 的 Angular 2 应用程序,其中包含新的 Angular 2 RC 范围包(@angular/common、@angular/core 等)。当我在这个 package.json 文件上使用右键单击恢复包时,我会进入输出控制台:
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'
关于如何在 Visual Studio 2015 中恢复这些范围包的任何想法? (我知道如何从命令行进行 npm install ...我想知道如何在不使用命令行的情况下。)
【问题讨论】:
-
发生这种情况是因为外部 Web 工具 OPTIONS 指向错误(过时)的 NPM。移动以使其引用 PATH。
-
我遇到过这个问题,这个链接帮助了我blogs.msdn.microsoft.com/webdev/2015/03/19/…
-
这似乎没有任何区别。我得到同样的错误。
-
好的,说得太早了。我退出了 VS 2015 并重新打开了该项目,然后它就可以工作了!谢谢!
-
如何将其标记为已回答?
标签: visual-studio-2015 angular