Open nicholaschiang opened 3 years ago
Also breaks the build of deasync (for parcel-bundler) on gitlab CI in a nodejs 17 docker image. Please follow up on this issue.
I thought adding this to yarnrc would be a viable workaround, since the error explains it just boils down to node-gyp missing, but nothing changes:
packageExtensions:
deasync@*:
peerDependencies:
node-gyp: latest
(I also tried with dependencies
instead of peerDependencies
)
FWIW I've managed to install my dependencies on alpine v3.16 and node v18 after running the following:
sudo apk add --no-cache python3 g++
I doubt that installing build essentials is, or should be, necessary, but I'm totally not a frontend dev so just wanted to share my observation.
See this for a solution and workaround:
When installing this package (
deasync@0.1.21
) using Yarn v2 on Mac OS X with Node.js 16.13.0 I get this error:To fix this, you should probably list
node-gyp
in yourpeerDependencies
.