angular - 使用“npm”恢复依赖关系。在 Visual Studio 2019 中这可能需要几分钟
问题描述
我在visual studio 2019中使用了一个带有角度模板的默认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
以避免一些卡在包中。之后npm install
从ClientApp
. 这样,您将能够在命令运行时在控制台上看到是否有一些进展。
npm install
将需要几分钟,具体取决于您的 PC 性能和网络连接。
推荐阅读
- flutter - 颤振:多个 JSON 文件的一个飞镖页面
- css - 使用 css 选择器在 img 之后选择 ::after
- c++ - 虽然循环没有中断??C++
- node.js - heroku 上的 WebSocket 连接问题:“WebSocket 在连接建立之前关闭”
- r - 在 R 中创建新列,仅在满足条件时将前一个值加 1
- password-protection - 存储密码的位置 - 第 3 方 API
- ios - 如何配置 SwiftUI openweathermap 应用程序以搜索包含多个单词的城市名称(例如纽约市)
- java - 无法在“/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin/apt”中找到可执行文件 (-1)
- python-3.x - Python模块Azure Identity 1.7.1中不需要的终端http请求输出
- c# - 如何使用 System.Text.Json 序列化文字 JSON 值?