Skip to content

[bug] Error running CLI: failed to run cargo: No such file or directory (os error 2) #4428

@tnrich

Description

@tnrich

Describe the bug

$ tauri init --app-name tauri-ove --window-title 'Open Vector Editor' --dist-dir ../dist --dev-path ../dist
✨  Done in 0.24s.
>> Updating "tauri.conf.json"
>> Running final command(s)

    Your installation completed.

    $ cd tauri-ove
    $ yarn install
    $ yarn tauri dev
    
✨  Done in 19.70s.
tnrich@Thomass-MBP Sites % cd tauri-ove 
tnrich@Thomass-MBP tauri-ove % yarn install
yarn tauri dev
yarn run v1.22.18
warning package.json: No license field
$ tauri dev
Error running CLI: failed to run cargo: No such file or directory (os error 2)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproduction

No response

Expected behavior

No response

Platform and versions

tnrich@Thomass-MBP tauri-ove % npm run tauri info

> tauri
> tauri "info"


Environment
  › OS: Mac OS 11.6.0 X64
  › Node.js: 16.13.0
  › npm: 8.1.0
  › pnpm: Not installed!
  › yarn: 1.22.18
  › rustup: Not installed!
  › rustc: Not installed!
  › cargo: Not installed!
  › Rust toolchain: 

Packages
  › @tauri-apps/cli [NPM]: 1.0.0
  › @tauri-apps/api [NPM]: 1.0.1
  › tauri [RUST]: 1.0.0 (no lockfile),
  › tauri-build [RUST]: no manifest (no lockfile),
  › tao [RUST]: no manifest (no lockfile),
  › wry [RUST]: no manifest (no lockfile),

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: ../dist

App directory structure
  ├─ dist
  ├─ node_modules
  └─ src-tauri

Stack trace

No response

Additional context

It seems like I need to have these packages installed for tauri to work?

  › pnpm: Not installed!
  › rustup: Not installed!
  › rustc: Not installed!
  › cargo: Not installed!

Not sure why they didn't get installed when running the tauri installer. At the very least there should be a check for them and a warning message emitted with instructions on how to install those various packages.

Thanks!

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