DEV Community

Discussion on: node-gyp support in alpine linux

Collapse
 
ssianik profile image
Syed Sirajul Islam Anik
/app # apk add --no-cache --virtual .gyp python make g++
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
ERROR: unable to select packages:
  python (no such package):
    required by: .gyp-20220105.064855[python]
Enter fullscreen mode Exit fullscreen mode

If this is your error, I used python2 instead of python. Thus the command became
apk add --no-cache --virtual .gyp python2 make g++. Someone suggested to use python3. I'm a frontend guy, so you can just try his suggestion.