首页 > 解决方案 > 将 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不工作

标签: nrwl-nx

解决方案


我们可以运行ng update 代替:

ng update @nrwl/workspace --force

推荐阅读