Skip to content

pnpm tauri info exits with error code 101 #2509

@linuxuser586

Description

@linuxuser586

Describe the bug

Running pnpm tauri info exits with code 101

To Reproduce

Steps to reproduce the behavior:

  1. pnpm init
  2. pnpm add -D @tauri-apps/cli
  3. pnpm add @tauri-apps/api
  4. tauri init
  5. pnpm tauri info
  6. Observe error

Expected behavior

Display the correct versions and exit with no error. Also note that the incorrect version for @tauri-apps/cli is reported when using pnpm before my proposed fix.

Screenshots

pnpm tauri info
Downloading Rust CLI...
Download Complete
 app:spawn Running "/home/barry/experiment/tauri/demo-1/node_modules/.pnpm/@tauri-apps+cli@1.0.0-beta.9/node_modules/@tauri-apps/cli/bin/tauri-cli tauri info" +0ms


Operating System - Ubuntu, version 20.04 X64

Node.js environment
  Node.js - 14.17.4
  @tauri-apps/cli - 1.0.0-beta.7 (outdated, latest: 1.0.0-beta.9)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected character 't' while parsing major version number")', src/info.rs:323:53
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  @tauri-apps/api - tauri-apps
 app:spawn Command "/home/barry/experiment/tauri/demo-1/node_modules/.pnpm/@tauri-apps+cli@1.0.0-beta.9/node_modules/@tauri-apps/cli/bin/tauri-cli" failed with exit code: 101 +0ms

Platform and Versions (required):

Operating System - Ubuntu, version 20.04 X64

Node.js environment
  Node.js - 14.17.4
  @tauri-apps/cli - 1.0.0-beta.9
  @tauri-apps/api - 1.0.0-beta.6

Global packages
  npm - 7.20.3
  pnpm - 6.13.0
  yarn - 1.22.4

Rust environment
  rustc - 1.54.0
  cargo - 1.54.0

App directory structure
/src-tauri
/node_modules

App
  tauri.rs - 1.0.0-beta.7
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - src-tauri/tauri.conf.json
  devPath - http://localhost:3000

Additional context

My suggested fix produces the above output

Stack Trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions