react-component / react-component/tree
npm install could not resolve dependency
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
After creating a fork, I cloned the repository and ran npm install
The following error was generated:
# npm resolution error report
2020-11-24T14:41:21.984Z
While resolving: rc-tree@4.0.0-beta.2
Found: react@17.0.1
node_modules/react
peer react@"*" from the root project
Could not resolve dependency:
peer react@"^16.0.0-0" from enzyme-adapter-react-16@1.15.5
node_modules/enzyme-adapter-react-16
dev enzyme-adapter-react-16@"^1.1.1" 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": "17.0.1",
"whileInstalling": {
"name": "rc-tree",
"version": "4.0.0-beta.2",
"path": "C:\\git\\tree"
},
"location": "node_modules/react",
"dependents": [
{
"type": "peer",
"name": "react",
"spec": "*",
"from": {
"location": "C:\\git\\tree"
}
}
]
},
"edge": {
"type": "peer",
"name": "react",
"spec": "^16.0.0-0",
"error": "INVALID",
"from": {
"name": "enzyme-adapter-react-16",
"version": "1.15.5",
"whileInstalling": {
"name": "rc-tree",
"version": "4.0.0-beta.2",
"path": "C:\\git\\tree"
},
"location": "node_modules/enzyme-adapter-react-16",
"dependents": [
{
"type": "dev",
"name": "enzyme-adapter-react-16",
"spec": "^1.1.1",
"from": {
"location": "C:\\git\\tree"
}
}
]
}
},
"peerConflict": null,
"strictPeerDeps": false,
"force": false
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by running npm install and inspecting the dependency declarations for React and enzyme-adapter-react-16. Done means a clean install completes without the reported peer-dependency resolution error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, react, typescript
- Domain
- build-system, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100