npm install 依赖下载报错无法解决,急求解!

下载vue项目的依赖项时报错

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 20.205.243.166]: errno=Unknown error
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

  "scripts": {
    "dev": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "analyzer": "vue-cli-service build --report",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@toast-ui/editor": "^3.2.1",
    "@toast-ui/vue-editor": "^3.1.1",
    "agora-rtc-sdk-ng": "^4.12.1",
    "agora-rtc-vue": "^0.2.53",
    "axios": "^0.21.4",
    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
    "clipboard": "^2.0.4",
    "codemirror": "^5.62.3",
    "core-js": "^3.23.1",
    "driver.js": "^0.9.8",
    "dropzone": "^5.5.1",
    "echarts": "^5.3.3",
    "element-ui": "^2.13.0",
    "file-saver": "^2.0.2",
    "fuse.js": "^3.4.6",
    "html-webpack-plugin-for-multihtml": "^2.30.2",
    "jquery": "^3.4.1",
    "js-cookie": "^2.2.1",
    "js-md5": "^0.7.3",
    "jsonlint": "^1.6.3",
    "jszip": "^3.7.1",
    "lazysizes": "^5.3.2",
    "leaflet": "^1.8.0",
    "lodash": "^4.17.21",
    "mavon-editor": "^2.7.7",
    "mockjs": "^1.1.0",
    "moment": "^2.24.0",
    "nanoid": "^3.1.30",
    "normalize.css": "^8.0.1",
    "nprogress": "^0.2.0",
    "path-to-regexp": "^6.1.0",
    "photo-sphere-viewer": "github:cijianzy/Photo-Sphere-Viewer",
    "piexifjs": "^1.0.6",
    "prosemirror-transform": "^1.7.0",
    "qs": "^6.9.1",
    "remixicon": "^2.5.0",
    "screenfull": "^5.0.0",
    "script-ext-html-webpack-plugin": "^2.1.4",
    "showdown": "^1.9.1",
    "sortablejs": "^1.10.2",
    "three": "^0.148.0",
    "tui-editor": "^1.4.10",
    "v-charts": "^1.19.0",
    "v-viewer": "^1.5.1",
    "vant": "^2.5.5",
    "vconsole": "^3.3.4",
    "vue": "^2.6.10",
    "vue-baidu-map": "^0.21.22",
    "vue-calendar-heatmap": "^0.8.4",
    "vue-clipboard2": "^0.3.1",
    "vue-count-to": "^1.0.13",
    "vue-danmaku": "^1.4.3",
    "vue-drag-resize": "^1.3.2",
    "vue-echarts": "^6.1.0",
    "vue-i18n": "^8.15.3",
    "vue-loading-spinner": "^1.0.11",
    "vue-plugin-load-script": "^2.1.1",
    "vue-quill-editor": "^3.0.6",
    "vue-quill-editor-upload": "^1.1.0",
    "vue-router": "^3.1.3",
    "vue-scroller": "^2.2.4",
    "vue-splitpane": "^1.0.6",
    "vue-star-rating": "^1.7.0",
    "vue-virtual-listview": "^1.1.0",
    "vue2-touch-events": "^3.2.2",
    "vuedraggable": "^2.24.3",
    "vuex": "^3.1.2",
    "wangeditor": "^4.7.7",
    "xlsx": "^0.17.1"
  },
  "devDependencies": {
    "@babel/core": "^7.6.2",
    "@babel/plugin-proposal-class-properties": "^7.5.5",
    "@babel/plugin-transform-runtime": "^7.7.6",
    "@babel/polyfill": "^7.7.0",
    "@babel/preset-env": "^7.6.2",
    "@babel/runtime": "^7.6.2",
    "@vue/cli-plugin-babel": "^4.1.2",
    "@vue/cli-plugin-router": "^4.1.2",
    "@vue/cli-plugin-vuex": "^4.1.2",
    "@vue/cli-service": "^4.1.2",
    "@vue/composition-api": "^1.7.0",
    "babel-loader": "^8.0.6",
    "babel-plugin-component": "^1.1.1",
    "babel-plugin-import": "^1.13.3",
    "cache-loader": "^4.1.0",
    "prettier": "^1.19.1",
    "quill-image-extend-module": "^1.1.2",
    "regenerator-runtime": "^0.13.7",
    "sass": "^1.52.0",
    "sass-loader": "^8.0.2",
    "script-loader": "^0.7.2",
    "svg-sprite-loader": "^4.1.6",
    "svgo": "^1.3.2",
    "vue-lazyload": "^1.3.3",
    "vue-template-compiler": "^2.6.10",
    "webpack": "^4.46.0",
    "html-webpack-plugin": "^4.0.0",
    "webpack-bundle-analyzer": "^4.4.2"
  }
}


运行npm install报错见文章开头

######尝试了执行:

git config --global url."https://github.com".insteadOf git://github.com
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global url."https://".insteadOf git:// 

后再次报错,内容与文章开头相同

希望能顺利下载好并能正常运行项目

C:\Users\jalchu\WebstormProjects\vue-element-admin>git config --global url."https://".insteadOf git://
重新安装 C:\Users\jalchu\WebstormProjects\vue-element-admin>npm install 看这个报错解决一样 https://blog.csdn.net/baidu_30809315/article/details/86520093

望采纳!!!

可尝试更换 npm 镜像源。
另外你的错误日志是无法连接到 github.com,可尝试用代理,用梯子,来解决网络问题。

望采纳!!! 可以使用淘宝npm源测试下。
npm使用淘宝镜像源
单次使用
npm install koa --registry=https://registry.npm.taobao.org/
永久使用
配置淘宝镜像源
npm config set registry https://registry.npm.taobao.org/
或者安装cnpm
npm install cnpm -g --registry=https://registry.npm.taobao.org/
使用下试试
npm/cnpm install koa

解决访问github.com超时问题
使用
1、增加proxy
2、增加hosts配置
针对2、利用IPaddress查github的IP地址
配置hosts文件,修改后ipconfig /flushdns