canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Unable to connect to Github error when running yarn install --pure-lockfile

Open ianq opened this issue 5 years ago • 5 comments

Summary: I am running on MacOS Mojave. Following the quick setup step in Canvas, at the step when i need to run yarn install --pure-lockfile, i get the below error. Tried to clear cache in lib but error persist

Steps to reproduce:

  1. Follow quick set up step
  2. Run yarn install --pure-lockfile

Expected behavior: installation to proceed as normal

Actual behavior: Receive error message below

Additional notes:

error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/amireh/grunt-template-jasmine-requirejs.git
Directory: /Users/gw84/Desktop/canvas-lms
Output:
fatal: unable to connect to github.com:
github.com[0: 13.229.188.59]: errno=Operation timed out
github.com[1: 13.250.177.223]: errno=Operation timed out
github.com[2: 52.74.223.119]: errno=Operation timed out
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

ianq avatar Jan 17 '19 05:01 ianq

Hi @ianq. This wouldn't appear to be an issue with Canvas; the error is indicating that your computer can't connect to github.com. Are you able to run git ls-remote --tags --heads git://github.com/amireh/grunt-template-jasmine-requirejs.git from the command line on the system where you're installing canvas?

grahamb avatar Jan 18 '19 05:01 grahamb

I run into the same issue today when upgrading Canvas, and had to force git to use https:// rather than git://

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

Hopefully this will solve your issue!

D2Online avatar Feb 06 '19 13:02 D2Online

I run into the same issue today when upgrading Canvas, and had to force git to use https:// rather than git://

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

Hopefully this will solve your issue!

Actually this has solved the problem, but someone could tell me what is the "meaning" of this problem? thx

mperu92 avatar Jun 20 '22 07:06 mperu92

@mperu92 I believe it is because the git protocol has been deprecated.

CEXJRully avatar Jul 13 '22 21:07 CEXJRully