Closed Jckpt closed 1 year ago
Hi, I'm using vite.js with react and I have an issue with installing this package, this is the error:
# npm resolution error report 2022-09-05T09:50:55.491Z While resolving: my-vue-app@0.0.0 Found: react@18.2.0 node_modules/react react@"^18.2.0" from the root project Could not resolve dependency: peer react@"^16.8.6" from react-darkreader@1.5.6 node_modules/react-darkreader react-darkreader@"*" 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. Raw JSON explanation object: { "code": "ERESOLVE", "current": { "name": "react", "version": "18.2.0", "whileInstalling": { "name": "my-vue-app", "version": "0.0.0", "path": "/home/jckpt/js/league/my-vue-app" }, "location": "node_modules/react", "isWorkspace": false, "dependents": [ { "type": "prod", "name": "react", "spec": "^18.2.0", "from": { "location": "/home/jckpt/js/league/my-vue-app" } } ] }, "currentEdge": { "type": "prod", "name": "react", "spec": "^18.2.0", "from": { "location": "/home/jckpt/js/league/my-vue-app" } }, "edge": { "type": "peer", "name": "react", "spec": "^16.8.6", "error": "INVALID", "from": { "name": "react-darkreader", "version": "1.5.6", "whileInstalling": { "name": "my-vue-app", "version": "0.0.0", "path": "/home/jckpt/js/league/my-vue-app" }, "location": "node_modules/react-darkreader", "isWorkspace": false, "dependents": [ { "type": "prod", "name": "react-darkreader", "spec": "*", "from": { "location": "/home/jckpt/js/league/my-vue-app" } } ] } }, "strictPeerDeps": false, "force": false }
I've used npm i react-darkreader --force and the package works correctly
npm i react-darkreader --force
OK,i will check it, may be i needed removed the deerDeps in package.json
deerDeps
Hi, I'm using vite.js with react and I have an issue with installing this package, this is the error: