npm install 依赖 第三方git仓库 报错问题解决

报错内容

bash 复制代码
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/vuejs/vue-touch.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 140.82.114.3]: errno=Unknown error
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

解决方法

bash 复制代码
git config --global url."https://".insteadOf git://

解决原因

别人github上的repository时,发现系统不让动,时候就只能用https://来访问repository

参考文章

Intellij IDEA 使用vue-element-admin报错解决方法 - 简书

相关推荐
胡萝卜术1 小时前
从API调用到手写LRU:力扣146「LRU缓存」的哈希表+双向链表终极进化之路
前端·javascript·面试
科技道人1 小时前
记录 默认置灰/禁用 app ‘Search Engine Selector‘ 的disable按钮
开发语言·前端·javascript
养肥胖虎1 小时前
Git提交规范笔记:feat和fix到底该怎么写
git·conventionalcommits
天疆说2 小时前
Zotero Connector 在 Edge 里找不到桌面 Zotero(Linux / Zotero 9.0.6 / Edge 150)
linux·前端·edge
手握风云-2 小时前
深入 Git:它是如何记录世界的(二)
git
李伟_Li慢慢3 小时前
02-从硬件说起WebGL
前端·three.js
kyriewen4 小时前
看了微软几万人用AI编程的数据——效率涨24%的代价没人提
前端·ai编程·claude
2601_963771374 小时前
How to Scale Your WordPress Store Traffic in 2026
前端·php·plugin
亿元程序员4 小时前
老板说我的3D箭头游戏用来做试玩太普通了,没人想玩,让我变点花样...
前端
李伟_Li慢慢5 小时前
01-threejs架构原理-课程简介
前端·three.js