- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试包含 Azure AD 进行登录,但在运行 npm install @azure/msal-browser @azure/msal-angular
以及 npm install @azure/msal 后-browser @azure/msal-angular@latest
在node_modules文件夹中看不到新条目。因此,当尝试导入模块时
import { MsalModule } from '@azure/msal-angular';
import { PublicClientApplication } from '@azure/msal-browser';
我收到警告TS2307:找不到模块“@azure/msal-browser”或其相应的类型声明
运行命令时,它似乎安装了所有内容(我在前端所在的位置运行它,也尝试在存储前端和后端的文件夹中运行它):
npm WARN @angular/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f89b9c93b8c1d6cad6cc" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of tslib@^1.9.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ant-design/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="58313b37362b7539363f2d34392a186176687669" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/common@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ant-design/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b5258545548165a555c4e575a497b02150b150a" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/core@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ant-design/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b3dad0dcddc09ed2ddd4c6dfd2c1f38a9d839d82" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/platform-browser@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ant-design/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="442d272b2a3769252a2331282536047d6a746a75" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.
npm WARN @rollup/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6f1f031a080601420c0002020001051c2f5e5a415e415f" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of rollup@^2.22.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6e0d010a0b0217140b1c2e5b405c405c" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/compiler@>=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e3808c87868f9a998691a3d6cdd1cdd1" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/core@>=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7b151c560114090914561a150f1f3b4255495549" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/animations@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="49272e6433263b3b266428273d2d0970677b677b" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/common@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0c626b2176637e7e63216d6278684c35223e223e" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/forms@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cba5ace6b1a4b9b9a4e6aaa5bfaf8bf2e5f9e5f9" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/core@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cea0a9e3b4a1bcbca1e3afa0baaa8ef7e0fce0fc" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/platform-browser@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cca2abe1b6a3bebea3e1ada2b8a88cf5e2fee2fe" rel="noreferrer noopener nofollow">[email protected]</a> requires a peer of @angular/router@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dfb9acbaa9bab1abac9fedf1eef1ec" rel="noreferrer noopener nofollow">[email protected]</a> (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f096839586959e8483b0c2dec1dec3" rel="noreferrer noopener nofollow">[email protected]</a>: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aec8ddcbd8cbc0daddee9f809c809f9d" rel="noreferrer noopener nofollow">[email protected]</a> (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1a7c697f6c7f746e695a2b3428342b29" rel="noreferrer noopener nofollow">[email protected]</a>: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d7b1a4b2a1b2b9a3a497e6f9e5f9e6e4" rel="noreferrer noopener nofollow">[email protected]</a> (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f593869083909b8186b5c4dbc7dbc4c6" rel="noreferrer noopener nofollow">[email protected]</a>: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ @azure/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="87eaf4e6ebaae5f5e8f0f4e2f5c7b5a9b5b7a9b7" rel="noreferrer noopener nofollow">[email protected]</a>
+ @azure/msal-angula<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4e3c0e7c607e6078" rel="noreferrer noopener nofollow">[email protected]</a>
updated 2 packages and audited 1717 packages in 11.119s
最佳答案
几乎是唯一的方法npm
将在 ./node_modules
以外的目录中安装某些内容是如果 global
已设置。运行npm config get global
。如果打印 true
,那么这就是你的问题。
找出位置global
设置为 npm config list
。查找global = true
在输出中,然后开始在其上方的行中查找类似于 ; "user" config from /Users/trott/.npmrc
的行。该行将告诉您问题是否出在您的用户配置、项目配置或全局配置中。您可以尝试使用npm config delete global
删除该设置,但 global
设置本身可能会扰乱该命令。 (我实际上不确定原因。我所知道的是我经历过 npm config delete global
没有效果。)最好运行 npm config edit
编辑配置文件以删除该行。 (您还可以使用该路径在您选择的编辑器中打开文件。只需非常小心,除了删除 global
设置行之外,不要进行任何更改。)
关于node.js - "npm install @azure/msal-browser @azure/msal-angular@latest"但node_modules 内没有任何内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70274675/
我刚刚遇到了一个关于 Gradle 依赖管理的小问题。 我知道我可以使用 latest.integration 声明依赖项引用快照或使用 latest.release从发布版本中引用工件。 我的问题是
还在这里学习gradle。寻找一种方法来获取给定范围的最新“任何内容”(快照/集成或发行)或必须发行的最新文件,例如[1.0,2.0]。有没有办法指定?在各处搜索,仅找到使用范围的引用(似乎不允许我限
我必须为许多文件检查一个文件的两个版本之间的差异。要获得黑白差异,我需要 dssc vhist,然后我必须检查最新版本和最后一个版本。然后我会得到版本的差异。它会消耗更多时间。以简单的方式处理这件事的
我有一个用于 PR 的 GitHub Action 工作流程,其中包含一个执行一些 NET Core 虚拟测试的作业,这些测试需要 PostgreSQL + SQL Serve 的实例。 工作定义:
例如,Facebook 加载最新的 X 条墙贴,然后如果用户向下滚动,它会加载后面的 X 条贴。 我可以看到您如何获得前 10 个最新的墙贴。像这样的东西: SELECT * FROM wall_po
我尝试使用以下命令提取 Fedora docker 镜像,但失败并出现 Tag latest not found in repository docker.io/library/fedora 错误:
我在德鲁伊有一张 table ,像 Timestamp || UserId || Action 而且我需要为每个 UserId 获取最新的 Action。在 MySQL 中我会做类似的事情 Selec
有人读过 Hickson 2010 年 5 月的 draft-hixie-thewebsocketprotocol-76 WebSocket 协议(protocol)吗? 这是 .htm 文件的来源:
我的构建过程生成了一个 docker 镜像。我希望用标签构建 ID 和“最新”来标记最新的构建镜像。我看到了两种方法。 第一种方法-(添加多个标签并推送一次) docker tag /:build_
我试图从缓冲区读取数据(而不是从文件中读取)以进行实时流式传输。在旧版本的 FFMPEG 中,使用 API“av_open_input_stream”支持它。但在 FFMPEG 版本 2.2.2 中,
编辑:其他容器正常运行。 docker run hello-world 工作正常。 我正在尝试运行最新的 nginx docker 镜像。它无限期地挂起。我已经在 2 个单独的全新安装的 ubuntu
我有一个基本模型,例如: class Stats(models.Model): created = models.DateTimeField(auto_now_add=True) grow
我需要调整以下 XPath 表达式以返回“最新”Amend_Start_Date来自示例 XML(来自 MS InfoPath): //my:Amend_Data[0=count(following-
go version go1.15.2 darwin/amd64 在我的文件夹中,我有两个文件:main.go和 user.go以及其他文件,例如 go.mod , go.sum等等。 尝试从 use
我正在尝试编译 Stygian 的 AzerothCore 重新包装,因为我想添加 Auction House Bot 模块。我已经安装并设置了 Docker,克隆了 repo 并安装了模块和补丁,但
我最近在进行代码审查(针对我的代码),一位架构师在我的 build.gradle 文件中看到了以下内容: dependencies { compile 'org.apache.commons:
我第一次尝试使用 go 模块。以下错误消息到底告诉我什么? module github.com/mkideal/cli@latest found (v0.2.2), but does not cont
我有一个如下的虚拟数据集,它是一个记录每个患者标本结果的数据集: case_id specimen_type_id virus_id specimen_result specime
就目前情况而言,这个问题不太适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、民意调查或扩展讨论。如果您觉得这个问题可以改进并可能重新开放,visit
在 Laravel 中,将最后一行记录到数据库表后,我可以通过调用 latest() 查询在记录后立即安全地访问相同的记录数据吗?因为其他用户的交易可能同时发生,而且可能不再是最后一条记录了? 编辑:
我是一名优秀的程序员,十分优秀!