You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Tauri应用安装成功却无法启动问题求助

Tauri应用打包后启动无响应问题
  • 正在开发一款基于Tauri的网页爬取UI应用,已完成MVP版本。执行yarn tauri build可成功生成.msi安装包,安装过程正常,但启动应用时无任何反应,既不显示错误信息也无状态码。
  • 尝试以管理员身份运行仍无效,起初怀疑是headless_chrome crate导致,但移除该依赖后重新构建问题依旧。
  • project/src-tauri/target/release中的可执行文件在项目内目录(如project/src-tauri/target、project/src-tauri、project)均可正常运行,但移至项目父目录后无法运行。
  • 使用Windows系统,应用面向Windows平台,以下是yarn tauri info的输出:
环境
  › 操作系统:Windows 10.0.22621 X64
  › Webview2:113.0.1774.35
  › MSVC:
      - Visual Studio 2022 构建工具
  › Node.js:18.15.0
  › npm:9.5.0
  › pnpm:未安装!
  › yarn:1.22.19
  › rustup:1.25.2
  › rustc:1.68.2
  › cargo:1.68.2
  › Rust工具链:stable-x86_64-pc-windows-msvc

依赖包
  › @tauri-apps/cli [NPM]:1.2.3
  › @tauri-apps/api [NPM]:1.2.0
  › tauri [RUST]:1.3.0,
  › tauri-build [RUST]:1.3.0,
  › tao [RUST]:0.16.0,
  › wry [RUST]:0.24.1,

应用信息
  › 构建类型:bundle
  › 内容安全策略(CSP):未设置
  › 产物目录:../dist
  › 开发路径:http://localhost:1420/
  › 前端框架:SolidJS
  › 打包工具:Vite

应用目录结构
  ├─ .git
  ├─ .vscode
  ├─ dist
  ├─ node_modules
  ├─ public
  ├─ src
  └─ src-tauri

内容的提问来源于stack exchange,提问作者Gustavo Shigueo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.21 22:04:55