npm ERR,fatal unable to access ‘httpsgithub.comnhnraphael.git‘ OpenSSL SSL_read Connection

£神魔★判官ぃ 2023-10-01 20:42 31阅读 0赞

vue 初始化项目出现:npm ERR! fatal: unable to access ‘https://github.com/nhn/raphael.git/’: OpenSSL SSL_read: Connection was reset, errno 10054

问题详情:

  1. npm ERR! Command failed: D:softwareGitbingit.EXE clone --depth=1 -q -b 2.2.0-c https://github.com/nhn/raphael.git C:UsersAdministratorAppDataRoamingnpm-cache_cacachetmpgit-clone-6786e754 --config core.longpaths=true
  2. npm ERR! warning: templates not found in C:UsersADMINI~1AppDataLocalTemppacote-git-template-tmpgit-clone-848b0be7
  3. npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset, errno 10054
  4. npm ERR!

解决方法:

更换npm源

  1. npm config set registry https://registry.npm.taobao.org

注意:如果还出现报错,n

发表评论

表情:
评论列表 (有 0 条评论,31人围观)

还没有评论,来说两句吧...

相关阅读