Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json syntax error for newer nodejs versions #21

Open
alexInteracso opened this issue Feb 28, 2023 · 0 comments
Open

package.json syntax error for newer nodejs versions #21

alexInteracso opened this issue Feb 28, 2023 · 0 comments

Comments

@alexInteracso
Copy link

alexInteracso commented Feb 28, 2023

Hi, after trying to run this package on a project with nodejs 18.14.0 it throws an error at npm install that is related to the syntax of peerDependencies:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: proceed@2.4.1
npm ERR! Found: dexie@3.2.3
npm ERR! node_modules/dexie
npm ERR! dexie@"^3.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer dexie@"^2.0.4 | ^3.0.0" from dexie-easy-encrypt@0.0.17
npm ERR! node_modules/dexie-easy-encrypt
npm ERR! dexie-easy-encrypt@"0.0.17" 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! /Users/interacso/.npm/_logs/2023-02-28T11_09_58_397Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/interacso/.npm/_logs/2023-02-28T11_09_58_397Z-debug-0.log

The solution would be simply update the peerDependencies from package.json from:

"peerDependencies": { "dexie": "^2.0.4 | ^3.0.0" },

(add one vertical bar |) to:

"peerDependencies": { "dexie": "^2.0.4 || ^3.0.0" },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant