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 error #1415

Closed
Moritz3DMedien opened this issue May 16, 2024 · 2 comments
Closed

sharp error #1415

Moritz3DMedien opened this issue May 16, 2024 · 2 comments
Labels
bug Something isn't working dependencies Pull requests and issues related to dependencies package:cli
Milestone

Comments

@Moritz3DMedien
Copy link

Describe the bug
I get an Error with "Sharp" as I try to optimize a file

C:\Users\desig\Desktop>gltf-transform optimize Bruecke.glb Bruecke2.glb

error: Could not load the "sharp" module using the win32-x64 runtime
ERR_DLOPEN_FAILED: The specified procedure could not be found.
\?\C:\Users\desig\AppData\Roaming\npm\node_modules@gltf-transform\cli\node_modules@img\sharp-win32-x64\lib\sharp-win32-x64.node
Possible solutions:

There are two different versions. As the Error suggested I tried to install another sharp version, but didnt help I got just third version.

C:\Users\desig\Desktop>npm -g ls sharp
C:\Users\desig\AppData\Roaming\npm
-- @gltf-transform/cli@4.0.0 +-- @gltf-transform/functions@4.0.0 | -- ndarray-pixels@4.0.0
| -- sharp@0.32.6 -- sharp@0.33.4

@Moritz3DMedien Moritz3DMedien added the bug Something isn't working label May 16, 2024
@donmccurdy
Copy link
Owner

Hi @Moritz3DMedien! I've just published a v4.0.1 release, with ndarray-pixels upgraded so that only the latest version of Sharp should be installed. Does that resolve the issue for you?

@donmccurdy donmccurdy added dependencies Pull requests and issues related to dependencies package:cli labels May 17, 2024
@donmccurdy donmccurdy added this to the v4.0 milestone May 17, 2024
@Moritz3DMedien
Copy link
Author

Yes! Works very well now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests and issues related to dependencies package:cli
Projects
None yet
Development

No branches or pull requests

2 participants