Skip to content

Instantly share code, notes, and snippets.

@gstark
Created November 5, 2021 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gstark/c31860ff110a42c4df2076dee92e9fbf to your computer and use it in GitHub Desktop.
Save gstark/c31860ff110a42c4df2076dee92e9fbf to your computer and use it in GitHub Desktop.

Leaving this gist in the hopes that this helps someone some day.

I was using a docker image with Alpine linux. In this docker container I installed a specific version of node via several methods (nodenv, asdf, etc.) and each time I had to add the gcompat package so I could run glibc applications.

When I tried to install many npm packages such as yarn and corejs and others I would get the error:

Error: spawn sh ENOENT

I belive I finally realized that Error: spawn sh ENOENT is happening since npm is trying to launch sh and there is some incompatibility with a glibc app running with gcompat trying to launch a non-glibc app like sh

All my workarounds could not get past this and I abandoned alpine linux for this reason.

I do hope this "Wisdom of the Ancients" helps someone someday. I hope to be better than denvercoder9. https://xkcd.com/979/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment