Skip to content
New issue

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

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

Already on GitHub? # to your account

react-simple-maps not installing #283

Closed
Rehan989 opened this issue Jun 8, 2022 · 3 comments
Closed

react-simple-maps not installing #283

Rehan989 opened this issue Jun 8, 2022 · 3 comments

Comments

@Rehan989
Copy link

Rehan989 commented Jun 8, 2022

npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: prospectsq@0.1.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR! react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || 17.x" from react-simple-maps@2.3.0
npm ERR! node_modules/react-simple-maps
npm ERR! react-simple-maps@"*" 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 C:\Users%user%\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users%user%\AppData\Local\npm-cache_logs\2022-06-08T15_48_21_139Z-debug-0.log

While installing react-simple maps

My package.json:
{
"name": "prospectsq",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"watch:css": "npx tailwindcss -i ./styles/tailwind.css -o ./styles/main.css --watch",
"css": "npx tailwindcss -i ./styles/tailwind.css -o ./styles/main.css"
},
"dependencies": {
"@headlessui/react": "^1.6.4",
"@heroicons/react": "^1.0.6",
"next": "12.1.6",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-tooltip": "^4.2.21"
},
"devDependencies": {
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
"eslint": "8.17.0",
"eslint-config-next": "12.1.6",
"tailwindcss": "^3.0.24"
}
}

@saewitz
Copy link

saewitz commented Jun 19, 2022

you can install it with npm i react-simple-maps --legacy-peer-deps, more info: https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages

@Rehan989
Copy link
Author

Thank you

@zimrick
Copy link
Contributor

zimrick commented Jul 7, 2022

See #284 for more info on this.

@zimrick zimrick closed this as completed Jul 7, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants