Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sharp not loaded problem #3915

Closed
2 of 10 tasks
oguz-kara opened this issue Dec 23, 2023 · 5 comments
Closed
2 of 10 tasks

sharp not loaded problem #3915

oguz-kara opened this issue Dec 23, 2023 · 5 comments

Comments

@oguz-kara
Copy link

Possible install-time or require-time problem

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 by npm 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?

  • [x ] 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 output of running npm install --verbose --foreground-scripts sharp in an empty directory?

npm verb cli C:\Program Files\nodejs\node.exe C:\Users\izmir\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
npm info using [email protected]
npm info using [email protected]
npm verb title npm install sharp
npm verb argv "install" "--loglevel" "verbose" "--foreground-scripts" "sharp"
npm verb logfile logs-max:10 dir:C:\Users\izmir\AppData\Local\npm-cache_logs\2023-12-23T13_09_06_219Z-
npm verb logfile C:\Users\izmir\AppData\Local\npm-cache_logs\2023-12-23T13_09_06_219Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/sharp 1623ms (cache revalidated)
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules\fsevents
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@next\swc-win32-ia32-msvc
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@next\swc-win32-arm64-msvc
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@next\swc-linux-arm64-musl
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@next\swc-linux-arm64-gnu
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@next\swc-darwin-x64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@next\swc-darwin-arm64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-win32-ia32
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-wasm32
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@emnapi\runtime
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-linuxmusl-arm64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-linux-s390x
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-linux-arm64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-linux-arm
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-libvips-linuxmusl-arm64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-libvips-linux-s390x
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-libvips-linux-arm64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-libvips-linux-arm
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-libvips-darwin-x64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-libvips-darwin-arm64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-darwin-x64
npm verb reify failed optional dependency C:\Users\izmir\projects\creatiwix\node_modules@img\sharp-darwin-arm64
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 712ms
npm http fetch GET 200 https://registry.npmjs.org/lodash 562ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/postcss 568ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/next 620ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/zod 738ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/lodash-contrib 992ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@chakra-ui%2fnext-js 1633ms (cache revalidated)

What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?

System:
OS: Windows 11 10.0.22621
CPU: (12) x64 AMD Ryzen 5 5600H with Radeon Graphics
Memory: 567.71 MB / 7.35 GB
Binaries:
Node: 18.17.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.9.2 - ~\AppData\Local\pnpm\pnpm.EXE
npmPackages:
sharp: ^0.33.1 => 0.33.1

@lovell
Copy link
Owner

lovell commented Dec 23, 2023

Please can you confirm the following checklist items from the issue template:

If you still require help, please provide the complete error message.

@stx-chris

This comment was marked as off-topic.

@lovell
Copy link
Owner

lovell commented Dec 27, 2023

@stx-chris Please open a new installation issue and answer all of the questions.

@lovell
Copy link
Owner

lovell commented Jan 3, 2024

Closing due to inactivity but please feel free to reopen with the requested details if further help is required.

@lovell lovell closed this as completed Jan 3, 2024
@marwie
Copy link

marwie commented Jun 3, 2024

Hello @lovell - I believe I have the same error - initially I thought it's because of my Node version but that doesn't seem to be the case - perhaps it's because of npm 8.19.x ?

1 info using [email protected]
2 info using [email protected]

2024-06-03T14_43_19_699Z-debug-0.log


Update: I ran npm update -g npm and it seems to work with 10.8.1

Repository owner locked and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants