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

Error "connection timed out" to github, when running yarn install command

Open cryptodadach opened this issue 4 years ago • 2 comments

Summary:

When launching "yarn install" command, the error Command failed appears

error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads git://github.com/amireh/grunt-template-jasmine-requirejs.git Directory: /var/canvas Output: fatal: unable to connect to github.com: github.com[0: 140.82.118.4]: errno=Connection timed out info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Steps to reproduce:

  1. Following the production install page until the "yarn install" command

Expected behavior:

Actual behavior:

Additional notes:

cryptodadach avatar Jul 07 '20 07:07 cryptodadach

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

this fixed it

cryptodadach avatar Jul 07 '20 19:07 cryptodadach

I am getting this when I try to deploy my application to Vercel. It looks like the same error. Any ideas?

error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/nodejs/undici.git
Directory: /vercel/path0/apps/landing
Output:
fatal: unable to connect to github.com:
github.com[0: 140.82.114.4]: errno=Connection timed out
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Command "yarn install" exited with 128

AaronMBMorse avatar Oct 04 '23 16:10 AaronMBMorse