npm安装报错

ls-remote -h -t git://github.com/adobe-webplatform/eve.git

npm WARN deprecated bfj-node4@5.3.1: Switch to the bfj package for fixes and new features!
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm ERR! Error while executing:
npm ERR! D:\Software\git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 13.229.188.59]: errno=No such file or directory
npm ERR! github.com[1: 52.74.223.119]: errno=No such file or directory npm ERR! github.com[2: 13.250.177.223]: errno=No such file or directory
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!

解决方法

// 进入根目录
cd 项目根目录

git config --global url."https://".insteadOf git://

fatal: unable to access https://github.com/nhn/raphael.git/

npm ERR! E:\tools\Gitt\Git\cmd\git.EXE ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR!
npm ERR! exited with error code: 128

解决方法

1、git config --global url."https://" .insteadOf git://

2、可能是下载内容太大导致问题处理
git config --global https.postBuffer 524288000

3、更改数据源 (已测有效)
npm config set registry https://registry.npm.taobao.org

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值