yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

Yarn fails to install (Exit code: 128) #9045

Open thenameisajay opened 2 months ago

thenameisajay commented 2 months ago

Issue Title: Unable to fetch packages from remote repository during yarn install

Description: Firstly, thank you for the amazing work on this project. When attempting to run yarn install in the project directory, the process fails to fetch packages from a remote repository with the following error message:

yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://git@github.com/googleapis/nodejs-vertexai.git
Directory: /vercel/path0
Output:
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Behavior: The yarn install command should successfully resolve and fetch packages from the remote repository without any errors.

Seen behaviour : Works on local but on production it fails to fetch the package

Environment: