• I have a problem like this:

    Nodejs v16.17.1

    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE could not resolve
    npm ERR!
    npm ERR! While resolving: [email protected]
    npm ERR! Found: [email protected]
    npm ERR! node_modules/nodebb-plugin-markdown
    npm ERR!   [email protected]"11.0.2" from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer [email protected]"^10.0.0" from [email protected]
    npm ERR! node_modules/nodebb-plugin-extended-markdown
    npm ERR!   [email protected]"^1.6.0" from the root project
    npm ERR!
    npm ERR! Conflicting peer dependency: [email protected]
    npm ERR! node_modules/nodebb-plugin-markdown
    npm ERR!   peer [email protected]"^10.0.0" from [email protected]
    npm ERR!   node_modules/nodebb-plugin-extended-markdown
    npm ERR!     [email protected]"^1.6.0" from the root project
    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 /root/.npm/eresolve-report.txt for a full report.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2022-10-15T00_34_28_675Z-debug-0.log
    Error installing dependencies!
    message: Command failed: npm install --omit=dev
    stdout: null
    stderr: null
    Error occurred during upgrade: Error: Command failed: npm install --omit=dev
        at checkExecSyncError (node:child_process:841:11)
        at Object.execSync (node:child_process:912:15)
        at Object.pkgInstall.installAll (/root/nodebb/src/cli/package-install.js:129:9)
        at Object.handler (/root/nodebb/src/cli/upgrade.js:22:19)
        at runSteps (/root/nodebb/src/cli/upgrade.js:55:16)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async Object.runUpgrade [as upgrade] (/root/nodebb/src/cli/upgrade.js:85:3)
    2022-10-15T00:34:32.388Z [4567/116763] - error: uncaughtException: Command failed: npm install --omit=dev
    Error: Command failed: npm install --omit=dev
        at checkExecSyncError (node:child_process:841:11)
        at Object.execSync (node:child_process:912:15)
        at Object.pkgInstall.installAll (/root/nodebb/src/cli/package-install.js:129:9)
        at Object.handler (/root/nodebb/src/cli/upgrade.js:22:19)
        at runSteps (/root/nodebb/src/cli/upgrade.js:55:16)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async Object.runUpgrade [as upgrade] (/root/nodebb/src/cli/upgrade.js:85:3) {"date":"Sat Oct 15 2022 00:34:32 GMT+0000 (Coordinated Universal Time)","error":{"output":[null,null,null],"pid":116770,"signal":null,"status":1,"stderr":null,"stdout":null},"exception":true,"os":{"loadavg":[0.84,0.88,0.44],"uptime":681715.81},"process":{"argv":["/usr/local/bin/node","/root/nodebb/nodebb","upgrade"],"cwd":"/root/nodebb","execPath":"/usr/local/bin/node","gid":0,"memoryUsage":{"arrayBuffers":1373835,"external":2335319,"heapTotal":33992704,"heapUsed":21790696,"rss":67485696},"pid":116763,"uid":0,"version":"v16.17.1"},"stack":"Error: Command failed: npm install --omit=dev\n    at checkExecSyncError (node:child_process:841:11)\n    at Object.execSync (node:child_process:912:15)\n    at Object.pkgInstall.installAll (/root/nodebb/src/cli/package-install.js:129:9)\n    at Object.handler (/root/nodebb/src/cli/upgrade.js:22:19)\n    at runSteps (/root/nodebb/src/cli/upgrade.js:55:16)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async Object.runUpgrade [as upgrade] (/root/nodebb/src/cli/upgrade.js:85:3)","trace":[{"column":11,"file":"node:child_process","function":"checkExecSyncError","line":841,"method":null,"native":false},{"column":15,"file":"node:child_process","function":"Object.execSync","line":912,"method":"execSync","native":false},{"column":9,"file":"/root/nodebb/src/cli/package-install.js","function":"Object.pkgInstall.installAll","line":129,"method":"installAll","native":false},{"column":19,"file":"/root/nodebb/src/cli/upgrade.js","function":"Object.handler","line":22,"method":"handler","native":false},{"column":16,"file":"/root/nodebb/src/cli/upgrade.js","function":"runSteps","line":55,"method":null,"native":false},{"column":5,"file":"node:internal/process/task_queues","function":"processTicksAndRejections","line":96,"method":null,"native":false},{"column":3,"file":"/root/nodebb/src/cli/upgrade.js","function":"async Object.runUpgrade [as upgrade]","line":85,"method":"runUpgrade [as upgrade]","native":false}]}
    
  • GNU/Linux Admin

    Remove nodebb-plugin-extended-markdown from your package.json, looks like it isn't compatible.


Suggested Topics

| | | |