Package installation failed with error message (using old mongodb@4.9.0 dependency):
$ npm install --save casbin-mongodb-adapter
$ npm install --save casbin-mongodb-adapter
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ngo@2.9.0
npm ERR! Found: mongodb@6.9.0
npm ERR! node_modules/mongodb
npm ERR! mongodb@"^6.8.0" from the root project
npm ERR! peer mongodb@">=6.5.0" from @ngo/infra.persistence@0.1.0
npm ERR! packages/infra/persistence
npm ERR! @ngo/infra.persistence@0.1.0
npm ERR! node_modules/@ngo/infra.persistence
npm ERR! peer @ngo/infra.persistence@"" from @ngo/services.analytics@0.1.0
npm ERR! packages/services/analytics
npm ERR! @ngo/services.analytics@0.1.0
npm ERR! node_modules/@ngo/services.analytics
npm ERR! 1 more (the root project)
npm ERR! 1 more (@ngo/services.analytics)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer mongodb@"^4.9.0" from casbin-mongodb-adapter@1.3.0
npm ERR! node_modules/casbin-mongodb-adapter
npm ERR! casbin-mongodb-adapter@"" 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!
npm ERR! For a full report see:
npm ERR! ~\AppData\Local\npm-cache_logs\2024-09-13T11_15_27_503Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: ~\AppData\Local\npm-cache_logs\2024-09-13T11_15_27_503Z-debug-0.log
We can proceed by ignoring dependency and install the package but required mongoDB dependency upgrade:
$ npm install --save casbin-mongodb-adapter --legacy-peer-deps
Package installation failed with error message (using old mongodb@4.9.0 dependency):
$ npm install --save casbin-mongodb-adapter
We can proceed by ignoring dependency and install the package but required mongoDB dependency upgrade:
$ npm install --save casbin-mongodb-adapter --legacy-peer-deps
Used package versions:
Can you please upgrade code to latest or possible new versions?