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
{clone: true}
using git clone git@112.124.51.62:h5/Vue-template.git on the terminal can be cloned to the local