Installing for x64 on Mac M1 only installs arm64 despite cross-platform options
LA opened this issue · comments
For some reason when trying to install sharp@0.33.4
, it only installs arm64 binaries under @img
even though I specify Linux. I know this used to be a common issue, but it seems like all related issues have been closed. When I downgrade to 0.32.1
, it successfully installs node_modules/sharp/build/Release/sharp-linux-x64.node
. Obviously npm verb reify failed optional dependency
has something to do with it. Feel free to close if this is a non-issue, I just don't understand how I'm supposed to install x64 version of sharp on my M1 mac with version 0.33.x
.
[12:06:28] ~/sharp-bug-repro ls node_modules/@img
. .. sharp-darwin-arm64 sharp-libvips-darwin-arm64
Possible install-time or require-time problem
- I have read and understood all of the documentation relating to installation.
- I have searched for known bugs relating to this problem in my choice of package manager.
You must confirm both of these before continuing.
Are you using the latest version of sharp?
- I am using the latest version of
sharp
as reported bynpm view sharp dist-tags.latest
.
If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of sharp
that is not the latest,
please open an issue against that package instead.
Are you using a supported runtime?
- I am using Node.js with a version that satisfies
^18.17.0 || ^20.3.0 || >=21.0.0
- I am using Deno
- I am using Bun
If you cannot confirm any of these,
please upgrade to the latest version
and try again before opening an issue.
Are you using a supported package manager and installing optional dependencies?
- I am using npm >= 9.6.5 with
--include=optional
- I am using yarn >= 3.2.0
- I am using pnpm >= 7.1.0 with
--no-optional=false
- I am using Deno
- I am using Bun
If you cannot confirm any of these, please upgrade to the latest version of your chosen package manager
and ensure you are allowing the installation of optional or multi-platform dependencies before opening an issue.
What is the complete error message, including the full stack trace?
[11:58:00] ~/sharp-bug-repro npm install --cpu=x64 --os=linux --libc=glibc sharp --loglevel verbose --include=optional
npm verb cli /Users/adar/.nvm/versions/node/v18.17.1/bin/node /Users/adar/.nvm/versions/node/v18.17.1/bin/npm
npm info using npm@9.6.7
npm info using node@v18.17.1
npm verb title npm install sharp
npm verb argv "install" "--cpu" "x64" "--os" "linux" "--libc" "glibc" "sharp" "--loglevel" "verbose" "--include" "optional"
npm verb logfile logs-max:10 dir:/Users/adar/.npm/_logs/2024-07-01T06_58_11_617Z-
npm verb logfile /Users/adar/.npm/_logs/2024-07-01T06_58_11_617Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/sharp 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color 17ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-arm64 16ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-arm64 15ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm 16ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-s390x 16ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-x64 18ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-x64 16ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm64 18ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-arm64 19ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-x64 18ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-s390x 18ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/semver 20ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-arm64 18ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 21ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-ia32 18ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-wasm32 19ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-x64 19ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-x64 20ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm 21ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-x64 19ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-x64 22ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm64 21ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@emnapi%2fruntime 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-string 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tslib 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 2ms (cache hit)
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-win32-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-win32-ia32
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-wasm32
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@emnapi/runtime
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/tslib
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linuxmusl-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linuxmusl-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-s390x
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-arm
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linuxmusl-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linuxmusl-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-s390x
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-arm
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-darwin-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-darwin-x64
npm info run sharp@0.33.4 install node_modules/sharp node install/check
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 217ms
npm info run sharp@0.33.4 install { code: 0, signal: null }
What is the complete output of running npm install --verbose --foreground-scripts sharp
in an empty directory?
[12:04:10] ~/sharp-bug-repro rm -rf node_modules
[12:04:13] ~/sharp-bug-repro rm -rf package-lock.json
[12:04:23] ~/sharp-bug-repro npm install --verbose --foreground-scripts sharp
npm verb cli /Users/adar/.nvm/versions/node/v18.17.1/bin/node /Users/adar/.nvm/versions/node/v18.17.1/bin/npm
npm info using npm@9.6.7
npm info using node@v18.17.1
npm verb title npm install sharp
npm verb argv "install" "--loglevel" "verbose" "--foreground-scripts" "sharp"
npm verb logfile logs-max:10 dir:/Users/adar/.npm/_logs/2024-07-01T07_04_31_508Z-
npm verb logfile /Users/adar/.npm/_logs/2024-07-01T07_04_31_508Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/sharp 171ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/semver 113ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 147ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-x64 170ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm64 224ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm 228ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm 235ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-x64 239ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-arm64 242ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-ia32 248ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-s390x 262ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-arm64 262ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-x64 263ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-arm64 265ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color 277ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-s390x 299ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm64 307ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-x64 307ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-x64 336ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-wasm32 370ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-x64 387ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-x64 407ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-arm64 748ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-string 45ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 51ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@emnapi%2fruntime 162ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/tslib 37ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 45ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-name 46ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 60ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 41ms (cache revalidated)
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-win32-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-win32-ia32
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-wasm32
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@emnapi/runtime
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/tslib
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linuxmusl-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linuxmusl-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-s390x
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-arm
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linuxmusl-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linuxmusl-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-s390x
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-arm64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-arm
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-darwin-x64
npm verb reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-darwin-x64
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 74ms
npm info run sharp@0.33.4 install node_modules/sharp node install/check
> sharp@0.33.4 install
> node install/check
sharp: Detected globally-installed libvips v8.15.2rwin-arm64: info run sharp@0.33.4 install node_modules/sharp node install/check
sharp: Attempting to build from source via node-gyp
sharp: Please add node-addon-api to your dependencies
npm info run sharp@0.33.4 install { code: 0, signal: null }
added 11 packages, and audited 12 packages in 4s
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm verb exit 0
npm info ok
What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?
[12:04:35] ~/sharp-bug-repro npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
Need to install the following packages:
envinfo@7.13.0
Ok to proceed? (y)
System:
OS: macOS 13.6.6
CPU: (10) arm64 Apple M1 Max
Memory: 2.13 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm
pnpm: 8.15.3 - ~/Library/pnpm/pnpm
bun: 1.0.0 - ~/.bun/bin/bun
npmPackages:
sharp: ^0.33.4 => 0.33.4
I have searched for known bugs relating to this problem in my choice of package manager.
npm info using npm@9.6.7
Please can you try with a more recent version of npm as there have been various bugs relating to overriding cpu/os.
Please can you try with a more recent version of npm as there have been various bugs relating to overriding cpu/os.
It worked with npm 10.8.1 – Thank you!
[12:56:52] ~/sharp-bug-repro npm install --cpu=x64 --os=linux --libc=glibc sharp --loglevel verbose --include=optional
npm verbose cli /Users/adar/.nvm/versions/node/v18.17.1/bin/node /Users/adar/.nvm/versions/node/v18.17.1/bin/npm
npm info using npm@10.8.1
npm info using node@v18.17.1
npm verbose title npm install sharp
npm verbose argv "install" "--cpu" "x64" "--os" "linux" "--libc" "glibc" "sharp" "--loglevel" "verbose" "--include" "optional"
npm verbose logfile logs-max:10 dir:/Users/adar/.npm/_logs/2024-07-01T07_57_12_539Z-
npm verbose logfile /Users/adar/.npm/_logs/2024-07-01T07_57_12_539Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/sharp 329ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/semver 69ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 126ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color 143ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-s390x 518ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-arm64 448ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm64 590ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-arm64 592ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-darwin-x64 621ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-arm 657ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linux-x64 539ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-x64 669ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-darwin-arm64 703ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-x64 479ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm 514ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-libvips-linuxmusl-x64 515ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-arm64 514ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linux-s390x 513ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-x64 450ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-wasm32 466ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-linuxmusl-arm64 519ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-x64 458ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img%2fsharp-win32-ia32 1015ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 55ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-string 205ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@emnapi%2fruntime 391ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/tslib 53ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-name 45ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-name 47ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 206ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 45ms (cache miss)
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-win32-x64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-win32-ia32
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-wasm32
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@emnapi/runtime
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/tslib
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linuxmusl-x64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linuxmusl-arm64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-s390x
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-arm64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-linux-arm
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linuxmusl-x64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linuxmusl-arm64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-s390x
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-arm64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-linux-arm
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-darwin-x64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-libvips-darwin-arm64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-darwin-x64
npm verbose reify failed optional dependency /Users/adar/sharp-bug-repro/node_modules/@img/sharp-darwin-arm64
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 91ms
npm http fetch GET 200 https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.4.tgz 244ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.2.tgz 414ms (cache miss)
npm info run sharp@0.33.4 install node_modules/sharp node install/check
npm info run sharp@0.33.4 install { code: 0, signal: null }
added 11 packages, and audited 12 packages in 5s
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm verbose cwd /Users/adar/sharp-bug-repro
npm verbose os Darwin 22.6.0
npm verbose node v18.17.1
npm verbose npm v10.8.1
npm verbose exit 0
npm info ok
[12:57:25] ~/sharp-bug-repro ls node_modules/@img
. .. sharp-libvips-linux-x64 sharp-linux-x64
Thanks for confirming. Commit 5c7f37a updates the issue template to request people try at least version 10.1.0 of npm as per https://docs.npmjs.com/cli/v10/using-npm/changelog#1010-2023-09-08