greenkeeper-lockfile icon indicating copy to clipboard operation
greenkeeper-lockfile copied to clipboard

Frequent yarn errors seen while installing greenkeeper-lockfile

Open rsimha opened this issue 7 years ago • 3 comments

This is breaking several CI builds and preventing other tests from being run.

For example, https://travis-ci.org/ampproject/amphtml/jobs/337372959#L1575

Error logs:

30.66s$ yarn global add greenkeeper-lockfile@1
yarn global v1.3.2
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/greenkeeper-lockfile: ETIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/home/travis/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
The command "yarn global add greenkeeper-lockfile@1" failed and exited with 1 during .

rsimha avatar Feb 05 '18 17:02 rsimha

/cc @janl

rsimha avatar Feb 05 '18 17:02 rsimha

Hey,

a possible solution could be to add greenkeeper-lockfile to your devDependencies instead of installing it at the begin of the CI run. And then call the update/upload script from the node modules like this: ./node_modules/.bin/greenkeeper-lockfile-update

I had this setup in a test repo: https://github.com/Realtin/gk-test/commit/bb0f69a51aec5e2f458029117db6d4bdd603a1da#diff-1d37e48f9ceff6d8030570cd36286a61

Realtin avatar Feb 12 '18 11:02 Realtin

I'm having this problem on Travis, is it like a regression?

Latest build: https://travis-ci.org/PolymerX/polymerx-cli/builds/383953242

LasaleFamine avatar May 29 '18 10:05 LasaleFamine