• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


27 Mar, 2025

Updated at 18 May, 2025

Error with Sharp installation in Tauri project – Peer dependencies and build issues

I'm working on a simple Rust application with a frontend built with HTML/CSS/JavaScript, and I thought Tauri would be a good fit. However, I'm stuck with an error related to Sharp that prevents me from moving forward.

Here’s what I’m facing:

code screen

As you can see, I keep getting an error related to sharp@npm:0.23.4, which fails to build properly. Here’s what I’ve tried so far:

  • Deleted package-lock.json and node_modules
  • Ran npm uninstall --save sharp -g
  • Removed the dependency from my package.json
  • Tried downgrading to an older version of sharp (no success)