Skip to content

[BUG] Issues when using workspaces #2600

@lee5i3

Description

@lee5i3

We are having issues with our monorepo project, our package.json has

{
  "private": true,
  "workspaces": [
    "common",
    "base-tests",
    "ttic-fl-ho3",
    "ttic-fl-af3",
    "hcpc-sc-af3",
    "hcpc-nj-af3",
    "ttic-ga-ho3"
  ]
}

When we ran npm install, it use to run fine.. now says

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/sinon
npm ERR!   dev sinon@"^9.0.1" from [email protected]
npm ERR!   common
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer sinon@"5 - 7" from [email protected]
npm ERR! node_modules/sinon-mongoose
npm ERR!   dev sinon-mongoose@"^2.3.0" from [email protected]
npm ERR!   common
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 /Users/lhull/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/lhull/.npm/_logs/2021-02-02T22_00_46_902Z-debug.log

This worked on v7.5.0 but now errors on 7.5.1+

2021-02-02T22_00_46_902Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions