使用 'npm' 恢复依赖关系。这可能需要几分钟 Visual Studio 2019

Restoring dependencies using 'npm'. This may take several minutes in Visual Studio 2019

我在 visual studio 2019 年使用了一个带有 angular 模板的默认 asp.net 核心,我构建了它,然后显示了这个输出,现在我不明白

1>Restoring dependencies using 'npm'. This may take several minutes... 1>npm WARN deprecated @angular/http@6.1.10: Switch to @angular/common/http - see https://angular.io/guide/http 1>npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead: 1>npm WARN deprecated npm i nyc 1>npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.

我无法构建我的项目并退出 visual studio,

如果卡在 Visual Studio 中,请尝试将其关闭。之后进入 ClientApp 文件夹并删除 node_modules 以避免一些卡在包中。之后在命令行中从 ClientApp 的根调用 npm install。这样,当命令为 运行 时,您将能够在控制台上看到是否有一些进展。

npm install 需要几分钟时间,具体取决于您的 PC 性能和网络连接。