我在尝试执行npm install @ionic-native/sqlite
时遇到了这个问题,有人知道如何修复它吗?谢谢你!
下面是npm解析错误报告:
While resolving: [email protected]
Found: [email protected]
node_modules/rxjs
rxjs@"~7.8.0" from the root project
Could not resolve dependency:
peer rxjs@"^5.5.0 || ^6.5.0" from @ionic-native/[email protected]
node_modules/@ionic-native/core
peer @ionic-native/core@"^5.1.0" from @ionic-native/[email protected]
node_modules/@ionic-native/sqlite
@ionic-native/sqlite@"*" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
我用--force,--legacy-peer-depstried返回了这个命令,并在网上搜索,有一些相关的答案,但仍然没有解决这个问题。
1条答案
按热度按时间ckocjqey1#
通过删除或运行以下命令删除
node_modules
和package-lock.json
或yarn.lock
检查并更新package.json文件中的
rxjs
版本,使其同时满足@ionic-native/core
和其他依赖项。请尝试它可能会工作。
Apache-Age #npm-install #rxjs