CircleCI-Public / node-orb

An orb for working with Node.js on CircleCI
https://circleci.com/orbs/registry/orb/circleci/node
MIT License
52 stars 80 forks source link

Latest container no longer includes `node-gyp` #195

Open jzempel opened 11 months ago

jzempel commented 11 months ago

Orb version:

5.1.0

What happened:

From what I can tell, when cimg/node:lts advanced from sha256:901508... to sha256:49c50d... it seems node-gyp is no longer globally available. When this happens, yarn install short circuits and leaves builds in an unpredictable state. As one example, yarn prepare doesn't run.

It's hard to say, but this may be a combination particular to lts + yarn :shrug:

Expected behavior:

Ideally, the container environment would remain stable within the context of an orb's major version.

Additional Information:

Adding yarn global add node-gyp is getting our CI builds back on track.

marboledacci commented 1 week ago

Hello @jzempel, can you please provide more details about what you had and the error you got. Also, what was the equivalent version of the two lts you used.