- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当您尝试通过 Angular CLI 创建 Angular 项目时,您会收到此错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: animation@0.0.0
npm ERR! Found: jasmine-core@3.6.0
npm ERR! node_modules/jasmine-core
npm ERR! dev jasmine-core@"~3.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer jasmine-core@">=3.7.1" from karma-jasmine-html-reporter@1.6.0
npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR! dev karma-jasmine-html-reporter@"^1.5.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
请帮帮我,我不明白这里需要做什么
最佳答案
就在我回答后几个小时,Angular 12 发布了——它与 NPM 7.13.0
完美配合。
您使用的是哪个 NPM 版本?
我刚刚在使用版本 7.10.0
时遇到了同样的问题。降级到 6.14.13
后,ng new
按预期工作。
npm i -g npm@6.14.13
目前,如果您想创建一个 Angular 项目,这似乎是最好的解决方案。然而,相应的Issue on GitHub已经关闭了。所以我希望下一个 Angular 版本也能与最新的 NPM 版本一起工作。
希望能帮到你。
关于angular - ERESOLVE 无法解析依赖树?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67464883/
在安装 node_modules 时,我使用了 --legacy-peer-deps 或 --force 标志。这在我本地系统上的 Windows 上运行良好,但在 ubuntu 服务器上部署项目时不
当您尝试通过 Angular CLI 创建 Angular 项目时,您会收到此错误 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to res
我正在尝试在运行 Angular 12 的项目中安装 ngx-datatables npm install @swimlane/ngx-datatable 安装后,我收到以下错误: npm ERR!
这个问题在这里已经有了答案: Fix the upstream dependency conflict installing NPM packages (17 个答案) 关闭去年。 运行 npm i
我正在尝试按照主页上的说明安装 material UI,但出现依赖关系树错误: C:\dev\shape-shop-front-end>npm install @mui/material npm
这是我的文件。 这里是我认为问题的核心。 Could not resolve dependency: npm ERR! peer graphql@"^0.12.0 || ^0.13.0 || ^14.
我经常收到类似下面的错误 ERESOLVE。你是怎么读的? >npm audit fix npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to reso
我有以下 package.json { "dependencies": { "@elastic/elasticsearch": "^7.16.0", "@nestjs/common
我正在关注 this tutorial将 Strapi 应用程序部署到 Heroku。 我已设置为从我的 Github 存储库自动部署。 推送到 Github 后,我收到构建失败的通知,并显示以下消息
有人在尝试使用电容器构建 ionic 项目时遇到此问题吗? 我有一个 Ionic 项目,其中每个功能都有不同的包。我正在尝试使用 ionic 电容器构建 android 将我的项目导出到 androi
$ npm i @aws-cdk/aws-ec2 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree
正在尝试安装 npm react-facebook-login在我的 react 应用程序中,但我不断收到依赖错误?这听起来很可怕,我不想强制安装将来可能会破坏的东西。我是 javascript
剧情简介 经过大约一个月的工作,我可以部署我的项目。我克隆了该文件夹(以防万一)并使用 Git 将其上传到我的 GitHub 存储库。然后我登录到 Vercel 的托管,选择他们的免费爱好定价(免费的
我是一名优秀的程序员,十分优秀!