How to fix Installing them now... npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/Mango/emitter.git

Unsolved Technical Support
  • I try to install the latest version of nodebb, I run

    ./nodebb setup
    

    unfortunate I face errors message

    Dependencies outdated or not yet installed.
    Installing them now...
    
    npm ERR! code 128
    npm ERR! An unknown git error occurred
    npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/Mango/emitter.git
    npm ERR! Could not create directory '/home/nodebb/.ssh'.
    npm ERR! Failed to add the host to the list of known hosts (/home/nodebb/.ssh/known_hosts).
    npm ERR! [email protected]: Permission denied (publickey).
    npm ERR! fatal: Could not read from remote repository.
    npm ERR!
    npm ERR! Please make sure you have the correct access rights
    npm ERR! and the repository exists.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2022-03-12T11_38_10_416Z-debug-0.log
    Error installing dependencies!
    message: Command failed: npm install --production
    stdout: null
    stderr: null
    /var/www/nodebb/src/cli/package-install.js:82
                    throw e;
                    ^
    
    Error: Command failed: npm install --production
        at checkExecSyncError (node:child_process:828:11)
        at Object.execSync (node:child_process:902:15)
        at Object.installAll (/var/www/nodebb/src/cli/package-install.js:73:9)
        at Object.<anonymous> (/var/www/nodebb/src/cli/index.js:62:18)
        at Module._compile (node:internal/modules/cjs/loader:1103:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Module.require (node:internal/modules/cjs/loader:1005:19)
        at require (node:internal/modules/cjs/helpers:102:18) {
      status: 128,
      signal: null,
      output: [ null, null, null ],
      pid: 3320,
      stdout: null,
      stderr: null
    }
    

    any solutions

  • @Belhachemia-Mohammed-ibrahim
    Hi I have the same error when using npm update after upgrading to 1.19.7.
    Could not fix it yet ... 😞


Suggested Topics