flathub / flathub/org.freedesktop.Sdk.Extension.node18
node-gyp no longer in /usr/lib/sdk/node18/bin
- Dominant language
- No language data
- Stars
- 3
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
it seems at some point node-gyp was removed from `/usr/lib/sdk/node18/bin` which leads to many js libraries that have native bindings failing to build. the files for it live in `/usr/lib/sdk/node18/lib/node_modules/npm/node_modules/node-gyp/bin` but this file is a js file and can't normally be executed as most scripts expect node-gyp to be `node-gyp` and not `node-gyp.js`. I ended up making a think wrapper for github desktop like this
```yaml
- name: node-gyp
buildsystem: simple
build-commands:
- install -Dm755 node-gyp /app/bin
cleanup:
- "*"
sources:
- type: script
dest-filename: node-gyp
commands:
- node /usr/lib/sdk/node18/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js $@
```
ideally this should be part of the SDK or documented
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the SDK contents around /usr/lib/sdk/node18/bin and the bundled node-gyp entry point at /usr/lib/sdk/node18/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js. Verify whether the SDK should expose a node-gyp wrapper or document the workaround, then confirm that a native-binding build can invoke node-gyp successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100