【发布时间】:2022-01-02 17:08:05
【问题描述】:
新年快乐!
我正在尝试安装的任何软件包都得到了这个:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @rollup/pluginutils@3.1.0
npm ERR! Found: dev @rollup/plugin-typescript@"^3.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @rollup/plugin-typescript@"^3.0.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.
npm ERR!
npm ERR! See ~/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! ~/.npm/_logs/2022-01-02T16_54_42_026Z-debug.log
我正在尝试使用这个npm install --save @fortawesome/fontawesome-free
我不明白可能出了什么问题。
【问题讨论】:
-
刚刚在 Linux 上使用 NPM 8.1.3 和 8.3.0 进行了尝试,并且没有任何问题。也许你可以告诉你你得到了什么版本的 NPM 以及你正在使用什么操作系统?
-
npm 8.1.2 和 MacOS 12.0.1 蒙特雷
-
你能升级 NPM 看看是否有帮助吗?你也试过
--force。我不是 NPM 专家,但删除@rollup/plugin-typescript3.0.0 并再试一次吧?也可以考虑用 NPM 标记这个问题以覆盖更多人。
标签: npm hilla vaadin-fusion