Visual studio 2015 无法在Visual Studio 2015中还原作用域为2的包

Visual studio 2015 无法在Visual Studio 2015中还原作用域为2的包,visual-studio-2015,angular,Visual Studio 2015,Angular,我正在将Visual Studio 2015与ASP.NET 4.x项目一起使用。我创建了一个带有package.json的Angular 2应用程序,其中包括新的Angular 2 RC范围的包(@Angular/common、@Angular/core等)。当我在这个package.json文件上使用右键单击restore packages时,我会在输出控制台中看到: npm http 404 https://registry.npmjs.org/angular/compiler npm E

我正在将Visual Studio 2015与ASP.NET 4.x项目一起使用。我创建了一个带有package.json的Angular 2应用程序,其中包括新的Angular 2 RC范围的包(@Angular/common、@Angular/core等)。当我在这个package.json文件上使用右键单击restore packages时,我会在输出控制台中看到:

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…我想知道如何在不使用命令行的情况下进行安装。)

发生这种情况是因为外部web工具选项指向错误(过时)的npm。移动以使其引用路径

请将此链接转到


重新启动Visual Studio以使其工作。

尽管“外部web工具”中的顺序正确,但我遇到了类似的问题


尝试将
package.json
文件中的
npm
版本至少更改为
3.0.0
。对我来说,它起了作用。

之所以发生这种情况,是因为外部web工具选项指向错误(过时)的NPM。我曾经遇到过这个问题,这个链接帮助了我,但似乎没有任何区别。我也有同样的错误。好吧,说得太快了。我退出VS 2015,重新打开项目,然后它就开始工作了!谢谢如何将此标记为已回答?我正在使用更新3的VS2015,在更改web工具选项后,它似乎仍然不适合我。在此方面的任何帮助都将不胜感激。VS 2015 U3拥有最新的TypeScript 1.8。*。所以不需要改变选择。同时卸载现有的nodej并安装最新的nodej。我拥有最新的nodej。Typescript 2 beta和node js 6.x不确定TS 2 beta将如何运行,它刚刚发布&我仍然需要检查,请试用TS 1.8*