-
-
Notifications
You must be signed in to change notification settings - Fork 276
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
❯ pnpm i react-native-bootsplash ...
Progress: resolved 1021, reused 987, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/sharp: Running install script...
ELIFECYCLE Command failed.
I have sharp
added to onlyBuiltDependencies
in package.json.
"pnpm": {
"onlyBuiltDependencies": [
...
"sharp"
]
}
The install does not go through. It's not added to package.json
.
I then ran pnpm i react-native-bootsplash --reporter ndjson
{"time":1749583931121,"hostname":"desktop-pc","pid":118967,"level":"debug","name":"pnpm:lifecycle","depPath":"[email protected]","line":"sharp: Building from source via node-gyp","stage":"install","stdio":"stdout","wd":"/some_app/node_modules/.pnpm/[email protected]/node_modules/sharp"}
{"time":1749583931156,"hostname":"desktop-pc","pid":118967,"level":"debug","name":"pnpm:lifecycle","depPath":"[email protected]","line":"sh: line 1: node-gyp: command not found","stage":"install","stdio":"stderr","wd":"/some_app/node_modules/.pnpm/[email protected]/node_modules/sharp"}
{"time":1749583931187,"hostname":"desktop-pc","pid":118967,"level":"error","name":"pnpm","code":"ELIFECYCLE","errno":"ENOENT","syscall":"spawn","file":"sh","pkgid":"[email protected]","stage":"install","script":"(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)","pkgname":"sharp","name":"pnpm","err":{"name":"pnpm","message":"[email protected] install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)`\nspawn ENOENT","code":"ELIFECYCLE","stack":"pnpm: [email protected] install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)`\nspawn ENOENT\n at ChildProcess.<anonymous> (/snapshot/dist/pnpm.cjs)\n at ChildProcess.emit (node:events:518:28)\n at maybeClose (node:internal/child_process:1105:16)\n at Socket.<anonymous> (node:internal/child_process:457:11)\n at Socket.emit (node:events:518:28)\n at Pipe.<anonymous> (node:net:337:12)"}}
Seems related to node-gyp
. Any alternatives to sharp
to not need that or what is the solution to it? I'd rather not have to install it.
Library version
Latest
Environment info
info Fetching system and libraries information...
System:
OS: Linux 6.15 Arch Linux
CPU: (16) x64 AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 9.13 GB / 31.24 GB
Shell:
version: 0.104.1
path: /home/user/.cargo/bin/nu
Binaries:
Node:
version: 22.16.0
path: ~/.local/share/mise/installs/node/22.16.0/bin/node
Yarn:
version: 1.22.22
path: ~/.local/share/mise/installs/yarn/1.22.22/bin/yarn
npm:
version: 10.9.2
path: ~/.local/share/mise/installs/node/22.16.0/bin/npm
Watchman:
version: 20250525.093350.0
path: /usr/bin/watchman
SDKs:
Android SDK:
API Levels:
- "35"
- "36"
Build Tools:
- 35.0.0
- 35.0.1
- 36.0.0
System Images:
- android-36 | Google APIs Intel x86_64 Atom
Android NDK: 27.2.12479018
IDEs:
Android Studio: AI-243.26053.27.2432.13536105
Languages:
Java:
version: 21.0.2
path: /home/user/.local/share/mise/installs/java/21.0.2/bin/javac
Ruby:
version: 3.4.4
path: /home/user/.local/share/mise/installs/ruby/3.4.4/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 19.0.0
wanted: ^19.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.79.3
wanted: 0.79.3
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Steps to reproduce
Described in the bug summary
Reproducible sample code
Described in the bug summary
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working