nuclear icon indicating copy to clipboard operation
nuclear copied to clipboard

Failed install from conflicting SQLite dependencies w/ latest pre-release (2dd909 at time-of-writing)

Open Drew-Daniels opened this issue 2 years ago • 3 comments

Platform: Windows 11 x64

Nuclear version: 2dd909

Description of the issue: Running npm install generated the following error output in eresolve-report.txt:


# npm resolution error report

2022-03-18T23:26:09.346Z

While resolving: [email protected]
Found: [email protected]
node_modules/sqlite3
  sqlite3@"^4.2.0" from the root project

Could not resolve dependency:
peerOptional sqlite3@"^5.0.2" from [email protected]
node_modules/typeorm
  typeorm@"^0.2.22" from the root project

Conflicting peer dependency: [email protected]
node_modules/sqlite3
  peerOptional sqlite3@"^5.0.2" from [email protected]
  node_modules/typeorm
    typeorm@"^0.2.22" 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",
  "edge": {
    "type": "peerOptional",
    "name": "sqlite3",
    "spec": "^5.0.2",
    "error": "INVALID",
    "from": {
      "name": "typeorm",
      "version": "0.2.45",
      "location": "node_modules/typeorm",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "prod",
          "name": "typeorm",
          "spec": "^0.2.22",
          "from": {
            "location": "C:\\Users\\DrewDaniels\\Documents\\opensource\\nuclear"
          }
        }
      ]
    }
  },
  "dep": {
    "name": "sqlite3",
    "version": "5.0.2",
    "whileInstalling": {
      "name": "typeorm",
      "version": "0.2.45",
      "path": "C:\\Users\\DrewDaniels\\Documents\\opensource\\nuclear\\node_modules\\typeorm"
    },
    "location": "node_modules/sqlite3",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "peerOptional",
        "name": "sqlite3",
        "spec": "^5.0.2",
        "error": "INVALID",
        "from": {
          "name": "typeorm",
          "version": "0.2.45",
          "location": "node_modules/typeorm",
          "isWorkspace": false,
          "dependents": [
            {
              "type": "prod",
              "name": "typeorm",
              "spec": "^0.2.22",
              "from": {
                "location": "C:\\Users\\DrewDaniels\\Documents\\opensource\\nuclear"
              }
            }
          ]
        }
      }
    ]
  },
  "current": {
    "name": "sqlite3",
    "version": "4.2.0",
    "location": "node_modules/sqlite3",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "prod",
        "name": "sqlite3",
        "spec": "^4.2.0",
        "from": {
          "location": "C:\\Users\\DrewDaniels\\Documents\\opensource\\nuclear"
        }
      }
    ]
  },
  "peerConflict": {
    "current": {
      "name": "sqlite3",
      "version": "4.2.0",
      "location": "node_modules/sqlite3",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "prod",
          "name": "sqlite3",
          "spec": "^4.2.0",
          "from": {
            "location": "C:\\Users\\DrewDaniels\\Documents\\opensource\\nuclear"
          }
        }
      ]
    },
    "peer": {
      "name": "sqlite3",
      "version": "5.0.2",
      "whileInstalling": {
        "name": "typeorm",
        "version": "0.2.45",
        "path": "C:\\Users\\DrewDaniels\\Documents\\opensource\\nuclear\\node_modules\\typeorm"
      },
      "location": "node_modules/sqlite3",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "peerOptional",
          "name": "sqlite3",
          "spec": "^5.0.2",
          "error": "INVALID",
          "from": {
            "name": "typeorm",
            "version": "0.2.45",
            "location": "node_modules/typeorm",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "typeorm",
                "spec": "^0.2.22",
                "from": {
                  "location": "C:\\Users\\DrewDaniels\\Documents\\opensource\\nuclear"
                }
              }
            ]
          }
        }
      ]
    }
  },
  "strictPeerDeps": false,
  "force": false,
  "isMine": true
}

Drew-Daniels avatar Mar 18 '22 23:03 Drew-Daniels

I'm working to update dependencies including sqlite, it shouldn't be causing showstopping conflicts though since CI is passing (wonky due to other causes sometimes, but in general it does build).

nukeop avatar Mar 20 '22 20:03 nukeop

I have two logfiles that might help you fix the issue. I tried "npm install" against the master branch (hash 7e94409) and got the same error. 2022-03-24T02_26_29_707Z-debug.log 2022-03-24T02_26_29_925Z-debug.log

robinhood2014 avatar Mar 24 '22 02:03 robinhood2014

Thanks, I think I've got it under control. I'm working to resolve some webpack issues now, and a few failing tests, and it'll be ready to go.

nukeop avatar Mar 24 '22 09:03 nukeop