Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created April 27, 2021 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/8d85a898ec8dd96d4e29dacf12e2098d to your computer and use it in GitHub Desktop.
Save isaacs/8d85a898ec8dd96d4e29dacf12e2098d to your computer and use it in GitHub Desktop.
{
"dependencies": {
"@isaacs/testing-peer-dep-conflict-chain-b": "2",
"@isaacs/testing-peer-dep-conflict-chain-m": "2"
}
}
@isaacs
Copy link
Author

isaacs commented Apr 27, 2021

Error: unable to resolve dependency tree
    at Arborist.[failPeerConflict] (/Users/isaacs/dev/npm/arborist/lib/arborist/build-ideal-tree.js:1221:25)
    at Arborist.[placeDep] (/Users/isaacs/dev/npm/arborist/lib/arborist/build-ideal-tree.js:1324:32)
    at /Users/isaacs/dev/npm/arborist/lib/arborist/build-ideal-tree.js:905:46
    at Array.map (<anonymous>)
    at Arborist.[buildDepStep] (/Users/isaacs/dev/npm/arborist/lib/arborist/build-ideal-tree.js:905:8)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Arborist.buildIdealTree (/Users/isaacs/dev/npm/arborist/lib/arborist/build-ideal-tree.js:218:7) {
  code: 'ERESOLVE',
  current: {
    name: '@isaacs/testing-peer-dep-conflict-chain-a',
    version: '3.0.0',
    location: 'node_modules/@isaacs/testing-peer-dep-conflict-chain-a',
    dependents: [
      {
        type: 'peer',
        name: '@isaacs/testing-peer-dep-conflict-chain-a',
        spec: '3',
        from: {
          name: '@isaacs/testing-peer-dep-conflict-chain-d',
          version: '3.0.0',
          location: 'node_modules/@isaacs/testing-peer-dep-conflict-chain-d',
          dependents: [
            {
              type: 'peer',
              name: '@isaacs/testing-peer-dep-conflict-chain-d',
              spec: '3',
              from: {
                name: '@isaacs/testing-peer-dep-conflict-chain-c',
                version: '3.0.0',
                location: 'node_modules/@isaacs/testing-peer-dep-conflict-chain-c',
                dependents: [
                  {
                    type: 'peer',
                    name: '@isaacs/testing-peer-dep-conflict-chain-c',
                    spec: '3',
                    from: {
                      name: '@isaacs/testing-peer-dep-conflict-chain-b',
                      version: '3.0.0',
                      location: 'node_modules/@isaacs/testing-peer-dep-conflict-chain-b',
                      dependents: [
                        {
                          type: 'prod',
                          name: '@isaacs/testing-peer-dep-conflict-chain-b',
                          spec: '3',
                          from: {
                            location: '/Users/isaacs/dev/npm/arborist/test/fixtures/testing-peer-dep-conflict-chain/b-upgrade'
                          }
                        },
                        {
                          type: 'peer',
                          name: '@isaacs/testing-peer-dep-conflict-chain-b',
                          spec: '3',
                          from: {
                            name: '@isaacs/testing-peer-dep-conflict-chain-a',
                            version: '3.0.0'
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },
  currentEdge: null,
  edge: {
    type: 'peer',
    name: '@isaacs/testing-peer-dep-conflict-chain-a',
    spec: '2',
    error: 'INVALID',
    from: {
      name: '@isaacs/testing-peer-dep-conflict-chain-e',
      version: '2.0.0',
      location: 'node_modules/@isaacs/testing-peer-dep-conflict-chain-e',
      dependents: [
        {
          type: 'prod',
          name: '@isaacs/testing-peer-dep-conflict-chain-e',
          spec: '2',
          from: {
            name: '@isaacs/testing-peer-dep-conflict-chain-m',
            version: '2.0.0',
            location: 'node_modules/@isaacs/testing-peer-dep-conflict-chain-m',
            dependents: [
              {
                type: 'prod',
                name: '@isaacs/testing-peer-dep-conflict-chain-m',
                spec: '2',
                from: {
                  location: '/Users/isaacs/dev/npm/arborist/test/fixtures/testing-peer-dep-conflict-chain/b-upgrade'
                }
              }
            ]
          }
        }
      ]
    }
  },
  peerConflict: null,
  strictPeerDeps: false,
  force: false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment