npm install报错,git://github.com/adobe-webplatform/eve.git
背景
在Linux服务器上部署 vue-element-admin 项目时,npm install 最后报错:
npm ERR! Error while executing:
npm ERR! /usr/local/git/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 20.205.243.166]: errno=连接超时
npm ERR!
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-03-29T11_16_23_937Z-debug.log
解决办法
设置git配置
git config --global url."https://".insteadOf git://
重新 npm install
本作品采用《CC 协议》,转载必须注明作者和本文链接