Node reports an error when downloading gitlab project with download-git-rep

node download gitlab with download-git-rep

gitlab is your own domain name, not gitlab.com
an error was reported when downloading using download-git-rep. Use the ssh method to download
use http to report 404

const download = require("download-git-repo");

module.exports = function (name) {
  return new Promise((resolve, reject) => {
    download("git@112.124.51.62:h5/Vue-template.git", name, {clone: true}, (err) => {
      if (err) {
        reject(err)
      } else {
        resolve(target)
      }
    })
  })
}
error 128 while using clone

clipboard.png

{clone: true}

clipboard.png

using git clone git@112.124.51.62:h5/Vue-template.git on the terminal can be cloned to the local
Jun.08,2021

I used Direct to configure git full path, the command can be executed, but there is no download content, it is still empty.


Hello, how did you solve it? I have also encountered this problem recently

Menu