-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[BUG] peerDependency not installed (workspaces) #4084
Comments
Facing similar issue. We are using knex and objection. In our case, some of the direct dependencies are not installed as well in workspaces. Works fine when these packages are installed in the root. |
this happens if node_modules directories are in the workspace directories. a fresh installation without lockfile and node_modules directory. the issue doesn't happen. |
We still see the same issue when having different Next and React versions in two different workspaces. Same deal as mentioned above. If we run the |
I guess it's not a bug yet there is no instruction about how to handle this conflicts. I couldn't find anything in the docs and I would be grateful if you could explain what this error means in workspaces and what we need to do to fix it. |
same problem here |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Refs #2600
I am using NPM workspaces.
I moved all my dev dependencies to the root package.json (because I was running into #4056)
knex@0.21 has a peerDependency to mssql@6 (see)
I am getting an error when running npm install
I tried
--legacy--peer-deps
, but this is not what I want. This flag will just ignore the peer dependency. Knex will then use mssql@7!Expected Behavior
I expected that npm provides a way to install both versions.
Steps To Reproduce
See above.
Environment
The text was updated successfully, but these errors were encountered: