Skip to content

[Bug] Error Found version mismatched Tauri packages #1020

@isaced

Description

@isaced

Search before asking

  • 我在 issues 列表中搜索,没有找到类似的内容。
    I searched in the issues and found nothing similar.

Pake version

pake https://weekly.tw93.fun --name Weekly --hide-title-bar
✼ No icon given, default in use. For a custom icon, use --icon option.
✸ Installing package...

up to date in 885ms

81 packages are looking for funding
✔ Package installed!
✼ The first packaging may be slow, please be patient and wait, it will be faster afterwards.
pakeConfig {
  windows: [
    {
      url: 'https://weekly.tw93.fun',
      url_type: 'web',
      hide_title_bar: true,
      fullscreen: false,
      width: 1200,
      height: 780,
      resizable: true,
      always_on_top: false,
      dark_mode: false,
      activation_shortcut: '',
      disabled_web_shortcuts: false
    }
  ],
  user_agent: {
    macos: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15',
    linux: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36',
    windows: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
  },
  system_tray: { macos: false, linux: true, windows: true },
  system_tray_path: 'png/icon_512.png',
  inject: [],
  proxy_url: ''
}
✶ Building app...

> pake-cli@3.1.1 build
> npm run tauri build --release
✺ Building app...

> pake-cli@3.1.1 tauri
> tauri build
✵ Building app...
✺ Building app...
Found version mismatched Tauri packages. Make sure the NPM and crate versions are on the same major/minor releases:
tauri (v2.2.0) : @tauri-apps/api (v1.6.0)
       Error Found version mismatched Tauri packages. Make sure the NPM and crate versions are on the same major/minor releases:
tauri (v2.2.0) : @tauri-apps/api (v1.6.0)
file:///opt/homebrew/lib/node_modules/pake-cli/dist/cli.js:322
                reject(new Error(`Error occurred while executing command "${command}". Exit code: ${code}`));
                       ^

Error: Error occurred while executing command "cd "/opt/homebrew/lib/node_modules/pake-cli" && npm run build". Exit code: 1
    at file:///opt/homebrew/lib/node_modules/pake-cli/dist/cli.js:322:24
    at /opt/homebrew/lib/node_modules/pake-cli/node_modules/shelljs/src/exec.js:145:9
    at ChildProcess.exithandler (node:child_process:421:5)
    at ChildProcess.emit (node:events:507:28)
    at maybeClose (node:internal/child_process:1101:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Node.js v23.11.0

System version

macOS 15.6

Node.js version

v23.11.0

Minimal reproduce step

brew install rust
npm install -g pake-cli
pake https://weekly.tw93.fun --name Weekly --hide-title-bar

What did you expect to see?

Run the pake command correctly

What did you see instead?

Found version mismatched Tauri packages. Make sure the NPM and crate versions are on the same major/minor releases:
tauri (v2.2.0) : @tauri-apps/api (v1.6.0)
       Error Found version mismatched Tauri packages. Make sure the NPM and crate versions are on the same major/minor releases:

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions