nrwl-nx - 将 nx 更新到 9.2.4 失败:不兼容更漂亮
问题描述
Package "@nrwl/workspace" has an incompatible peer dependency to "prettier" (requires "^1.19.1", would install "2.0.4")
× Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
如何解决这个问题?
npm run update --force
不工作
解决方案
我们可以运行ng update 代替:
ng update @nrwl/workspace --force
推荐阅读
- python - 如何仅获取numpy数组中一项的坐标
- python - AttributeError:“MyReturnWindow”对象没有属性“selected_index”
- java - Println 方法在第二次运行时不起作用
- angular - *ngFor 没有按预期破坏组件
- android - 如何从数据库中获取特定用户的数据
- go - 如何组织一个 Go 项目
- python - Anaconda Prompt 自动关闭
- docker - Confluent 控制中心未显示系统运行状况(对于多集群配置)
- css - CSS文本动画,替换文本
- java - slf4j 记录器信息级别未登录 Apache Tomcat