最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - Error with Sharp installation in Tauri project – Peer dependencies and build issues - Stack Overflow

programmeradmin3浏览0评论

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)
发布评论

评论列表(0)

  1. 暂无评论