This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
NPM V7 and Grouparoo - Unable to resolve dependency tree #1270
Unanswered
evantahler
asked this question in
Ideas
Replies: 1 comment
-
This may also manifest itself with errors like The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the release of NPM v7x, the way that
peerDependencies
are handled has changed.NPM now will throw an error if there's a conflicting or unresolvable package in the tree.
For Grouparoo, this happens in 2 places. specifically related to our UI packages and conflicting peerDependencies on different versions of react (v16 vs v17):
The full error you recieve on `npm install` looks something like this (click to expand)
Short term mitigations:
grouparoo
cli to manage your project (ie:npx grouparoo install
). We will apply the--legacy-peer-deps
flag if needednpm
to manage your Grouparoo application, and you use NPM v6, no change is needednpm
to manage your Grouparoo application, and you use NPM v7, you can add the--legacy-peer-deps
flag when you usenpm install
and things will continue to work as they haveLong term mitigations:
Misc
npm --version
Beta Was this translation helpful? Give feedback.
All reactions