Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm tauri info exits with error code 101 #2509

Closed
linuxuser586 opened this issue Aug 21, 2021 · 4 comments
Closed

pnpm tauri info exits with error code 101 #2509

linuxuser586 opened this issue Aug 21, 2021 · 4 comments

Comments

@linuxuser586
Copy link
Contributor

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

linuxuser586 added a commit to linuxuser586/tauri that referenced this issue Aug 21, 2021
lucasfernog added a commit that referenced this issue Aug 24, 2021
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
@yankeeinlondon
Copy link
Member

yankeeinlondon commented Sep 19, 2021

I am still getting this problem; what can I do to work around this? I am using:

  • @tauri-apps/cli 1.0.0-beta.10
  • @tauri-apps/api 1.0.0-beta.8
  • pnpm: 6.14.7
  • OS: macOS
  • node: 14.17.6

@yankeeinlondon
Copy link
Member

yankeeinlondon commented Sep 19, 2021

Note: I reinstalled everything with npm as I thought the error had something to do with pnpm but I get the same error. That said ... yarn does work.

@linuxuser586
Copy link
Contributor Author

@ksnyde the fix is only in the next branch and has not been released yet.

@lucasfernog
Copy link
Member

Closed by #2510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants