Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
We Distribute
  1. Home
  2. Uncategorized
  3. Update error Nodebb v4.3.0

Update error Nodebb v4.3.0

Scheduled Pinned Locked Moved Uncategorized
7 Posts 3 Posters 7 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • kirillevo@community.nodebb.orgK This user is from outside of this forum
    kirillevo@community.nodebb.orgK This user is from outside of this forum
    kirillevo@community.nodebb.org
    wrote last edited by
    #1

    Hello everyone! I encountered this problem when updating, it swears at Eslint

    The error occurs due to a version conflict between eslint package versions between different dependencies.

    admin@:~/projects/nodebb$ ./nodebb build
    Dependencies outdated or not yet installed.
    Installing them now...
    
    npm error code ERESOLVE
    npm error ERESOLVE could not resolve
    npm error
    npm error While resolving: nodebb@4.3.0
    npm error Found: eslint@8.57.1
    npm error node_modules/eslint
    npm error   peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.4.0
    npm error   node_modules/@eslint-community/eslint-utils
    npm error     @eslint-community/eslint-utils@"^4.2.0" from eslint@8.57.1
    npm error     @eslint-community/eslint-utils@"^4.2.0" from eslint@9.18.0
    npm error     node_modules/nodebb-plugin-sso-oauth2-multiple/node_modules/eslint
    npm error       eslint@"9.x" from nodebb-plugin-sso-oauth2-multiple@1.4.2
    npm error       node_modules/nodebb-plugin-sso-oauth2-multiple
    npm error         nodebb-plugin-sso-oauth2-multiple@"^1.4.2" from the root project
    npm error   peer eslint@"^7.32.0 || ^8.2.0" from eslint-config-airbnb-base@15.0.0
    npm error   node_modules/eslint-config-airbnb-base
    npm error     eslint-config-airbnb-base@"15.0.0" from eslint-config-nodebb@0.2.1
    npm error     node_modules/eslint-config-nodebb
    npm error       dev eslint-config-nodebb@"1.1.4" from the root project
    npm error   3 more (eslint-config-nodebb, eslint-plugin-import, nodebb-plugin-2factor)
    npm error
    npm error Could not resolve dependency:
    npm error dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
    npm error
    npm error Conflicting peer dependency: eslint@9.26.0
    npm error node_modules/eslint
    npm error   peer eslint@">=9.0.0" from @stylistic/eslint-plugin-js@4.2.0
    npm error   node_modules/@stylistic/eslint-plugin-js
    npm error     dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
    npm error
    npm error Fix the upstream dependency conflict, or retry
    npm error this command with --force or --legacy-peer-deps
    npm error to accept an incorrect (and potentially broken) dependency resolution.
    npm error
    npm error
    npm error For a full report see:
    npm error /home/admin/.npm/_logs/2025-05-05T09_37_06_860Z-eresolve-report.txt
    
    npm error A complete log of this run can be found in: /home/admin/.npm/_logs/2025-05-05T09_37_06_860Z-debug-0.log
    Error installing dependencies!
    message: Command failed: npm install --omit=dev
    stdout: null
    stderr: null
    /home/admin/projects/nodebb/src/cli/package-install.js:138
                    throw e;
                    ^
    
    Error: Command failed: npm install --omit=dev
        at genericNodeError (node:internal/errors:983:15)
        at wrappedFn (node:internal/errors:537:14)
        at checkExecSyncError (node:child_process:889:11)
        at Object.execSync (node:child_process:961:15)
        at pkgInstall.installAll (/home/admin/projects/nodebb/src/cli/package-install.js:129:9)
        at Object. (/home/admin/projects/nodebb/src/cli/index.js:50:18)
        at Module._compile (node:internal/modules/cjs/loader:1434:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
        at Module.load (node:internal/modules/cjs/loader:1249:32)
        at Module._load (node:internal/modules/cjs/loader:1065:12) {
      status: 1,
      signal: null,
      output: [ null, null, null ],
      pid: 295719,
      stdout: null,
      stderr: null
    }
    
    Node.js v22.2.0
    

    Found a solution - this will temporarily disable strict checking of peerDependencies:

    npm install --omit=dev --legacy-peer-deps
    ./nodebb build
    
    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • kirillevo@community.nodebb.orgK kirillevo@community.nodebb.org

      Hello everyone! I encountered this problem when updating, it swears at Eslint

      The error occurs due to a version conflict between eslint package versions between different dependencies.

      admin@:~/projects/nodebb$ ./nodebb build
      Dependencies outdated or not yet installed.
      Installing them now...
      
      npm error code ERESOLVE
      npm error ERESOLVE could not resolve
      npm error
      npm error While resolving: nodebb@4.3.0
      npm error Found: eslint@8.57.1
      npm error node_modules/eslint
      npm error   peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.4.0
      npm error   node_modules/@eslint-community/eslint-utils
      npm error     @eslint-community/eslint-utils@"^4.2.0" from eslint@8.57.1
      npm error     @eslint-community/eslint-utils@"^4.2.0" from eslint@9.18.0
      npm error     node_modules/nodebb-plugin-sso-oauth2-multiple/node_modules/eslint
      npm error       eslint@"9.x" from nodebb-plugin-sso-oauth2-multiple@1.4.2
      npm error       node_modules/nodebb-plugin-sso-oauth2-multiple
      npm error         nodebb-plugin-sso-oauth2-multiple@"^1.4.2" from the root project
      npm error   peer eslint@"^7.32.0 || ^8.2.0" from eslint-config-airbnb-base@15.0.0
      npm error   node_modules/eslint-config-airbnb-base
      npm error     eslint-config-airbnb-base@"15.0.0" from eslint-config-nodebb@0.2.1
      npm error     node_modules/eslint-config-nodebb
      npm error       dev eslint-config-nodebb@"1.1.4" from the root project
      npm error   3 more (eslint-config-nodebb, eslint-plugin-import, nodebb-plugin-2factor)
      npm error
      npm error Could not resolve dependency:
      npm error dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
      npm error
      npm error Conflicting peer dependency: eslint@9.26.0
      npm error node_modules/eslint
      npm error   peer eslint@">=9.0.0" from @stylistic/eslint-plugin-js@4.2.0
      npm error   node_modules/@stylistic/eslint-plugin-js
      npm error     dev @stylistic/eslint-plugin-js@"4.2.0" from the root project
      npm error
      npm error Fix the upstream dependency conflict, or retry
      npm error this command with --force or --legacy-peer-deps
      npm error to accept an incorrect (and potentially broken) dependency resolution.
      npm error
      npm error
      npm error For a full report see:
      npm error /home/admin/.npm/_logs/2025-05-05T09_37_06_860Z-eresolve-report.txt
      
      npm error A complete log of this run can be found in: /home/admin/.npm/_logs/2025-05-05T09_37_06_860Z-debug-0.log
      Error installing dependencies!
      message: Command failed: npm install --omit=dev
      stdout: null
      stderr: null
      /home/admin/projects/nodebb/src/cli/package-install.js:138
                      throw e;
                      ^
      
      Error: Command failed: npm install --omit=dev
          at genericNodeError (node:internal/errors:983:15)
          at wrappedFn (node:internal/errors:537:14)
          at checkExecSyncError (node:child_process:889:11)
          at Object.execSync (node:child_process:961:15)
          at pkgInstall.installAll (/home/admin/projects/nodebb/src/cli/package-install.js:129:9)
          at Object. (/home/admin/projects/nodebb/src/cli/index.js:50:18)
          at Module._compile (node:internal/modules/cjs/loader:1434:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
          at Module.load (node:internal/modules/cjs/loader:1249:32)
          at Module._load (node:internal/modules/cjs/loader:1065:12) {
        status: 1,
        signal: null,
        output: [ null, null, null ],
        pid: 295719,
        stdout: null,
        stderr: null
      }
      
      Node.js v22.2.0
      

      Found a solution - this will temporarily disable strict checking of peerDependencies:

      npm install --omit=dev --legacy-peer-deps
      ./nodebb build
      
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.org
      wrote last edited by
      #2

      @KirillEvo seems that also deleting package-lock.json will also work.

      1 Reply Last reply
      0
      • kirillevo@community.nodebb.orgK This user is from outside of this forum
        kirillevo@community.nodebb.orgK This user is from outside of this forum
        kirillevo@community.nodebb.org
        wrote last edited by
        #3

        julian I tried updating on the local server, deleting the packag-lock.json e did not help. 😢

        1 Reply Last reply
        0
        • T This user is from outside of this forum
          T This user is from outside of this forum
          teemberland@community.nodebb.org
          wrote last edited by
          #4

          julian what is the official fix for this error? is it the solution posted by KirillEvo ?

          julian@community.nodebb.orgJ 1 Reply Last reply
          0
          • T teemberland@community.nodebb.org

            julian what is the official fix for this error? is it the solution posted by KirillEvo ?

            julian@community.nodebb.orgJ This user is from outside of this forum
            julian@community.nodebb.orgJ This user is from outside of this forum
            julian@community.nodebb.org
            wrote last edited by
            #5

            Teemberland try these steps:

            Link Preview Image
            NodeBB v4.3.0 — Remote Categories are a go!

            Try removing package-lock.json as well see what happens. npm r eslint-config-airbnb-base npm r eslint-config-nodebb rm package-lock.json rm -rf node_modules/...

            favicon

            NodeBB Community (community.nodebb.org)

            1 Reply Last reply
            0
            • T This user is from outside of this forum
              T This user is from outside of this forum
              teemberland@community.nodebb.org
              wrote last edited by
              #6

              julian I should've tried your solution first. Removing package-lock.json worked! Thanks!

              julian@community.nodebb.orgJ 1 Reply Last reply
              0
              • T teemberland@community.nodebb.org

                julian I should've tried your solution first. Removing package-lock.json worked! Thanks!

                julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.org
                wrote last edited by
                #7

                Teemberland thanks for letting me know!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups