Closed ipec closed 11 months ago
Is canvas
also a dependency? https://sharp.pixelplumbing.com/install#canvas-and-windows
canvas is installed, yes, but it worked with "sharp": "^0.32.3"
This is the ongoing glib symbol conflict between the binaries provided for Windows by canvas and sharp - https://github.com/Automattic/node-canvas/pull/813 will probably help.
Thanks for the link, but not sure it does help. Basically I have two choices, either I use a now deprecated static prebuild of canvas or I stay on "sharp": "^0.32.3". Neither of which is ideal.
Some version combinations will interoperate and some won't, it's ultimately down to the (potentially conflicting) versions of glib.
sharp will always expose the underlying glib version it is using via sharp.versions.glib
, so perhaps you could use that to build a compatibility matrix? Good luck!
Possible install-time or require-time problem
npm install
is the same as the architecture and platform of Node.js used at runtime.Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.Is this a problem with filesystem permissions?
If you are using the
ignore-scripts
feature ofnpm
, have you tried with thenpm install --ignore-scripts=false
flag? Yes. No success.What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?System: OS: Windows 10 10.0.19045 CPU: (8) x64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz Memory: 17.56 GB / 23.97 GB Binaries: Node: 20.5.1 - D:\A P P S\code\nodejs\node.EXE npm: 9.2.0 - D:\A P P S\code\nodejs\npm.CMD npmPackages: sharp: ^0.32.5 => 0.32.5
Issue when upgrading from sharp@0.32.3 to sharp@0.32.5 on Windows 10 (64)
Error: Something went wrong installing the "sharp" module
The specified procedure could not be found. \?\E:\PROJECT\JS\Chatbot\Simon-AI\node_modules\sharp\build\Release\sharp-win32-x64.node
The following methods I tried with no avail:
Results from npm ls sharp and npm ls -g sharp are: λ npm ls sharp simon-ai-v14-esm@0.8.83 E:\PROJECT\JS\Chatbot\Simon-AI └── sharp@0.32.5 λ npm ls -g sharp C:\Users\miles\AppData\Roaming\npm └── (empty)
"sharp": "^0.32.3" works, any version above that does not unfortunately