Skip to content

ERROR Command failed with exit code 1: 'bunx @tauri-apps/cli@latest init #193

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

Open
marvkr opened this issue Apr 27, 2025 · 1 comment
Open

Comments

@marvkr
Copy link

marvkr commented Apr 27, 2025

[8:11:10 PM] ERROR Command failed with exit code 1: 'bunx @tauri-apps/cli@latest init --app-name=my-better-t-app --window-title=my-better-t-app --frontend-dist=../dist --dev-url=http://localhost:3001 --before-dev-command="bun run dev" --before-build-command="bun run build"'

Resolving dependencies
Resolved, downloaded and extracted [28]
Saved lockfile
/private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/index.js:312
throw loadError
^

Error: Cannot find module '@tauri-apps/cli-darwin-x64'
Require stack:

  • /private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/index.js
  • /private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/main.js
  • /private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/tauri.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1405:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1061:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1066:22)
    at Function._load (node:internal/modules/cjs/loader:1215:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1491:12)
    at require (node:internal/modules/helpers:135:16)
    at Object. (/private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/index.js:131:29)
    at Module._compile (node:internal/modules/cjs/loader:1734:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/index.js',
    '/private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/main.js',
    '/private/tmp/bunx-502-@tauri-apps/cli@latest/node_modules/@tauri-apps/cli/tauri.js'
    ]
    }

Node.js v23.10.0

◇ Failed

ERROR An unexpected error occurred: s is not a function 8:11:10 PM

ERROR TypeError: s is not a function 8:11:10 PM
at Object.N [as stop] (file:///private/tmp/bunx-502-create-better-t-stack@latest/node_modules/@clack/prompts/dist/index.mjs:86:8)
at Lt (file:///private/tmp/bunx-502-create-better-t-stack@latest/node_modules/create-better-t-stack/dist/index.js:200:11177)
at async pn (file:///private/tmp/bunx-502-create-better-t-stack@latest/node_modules/create-better-t-stack/dist/index.js:220:2630)

@AmanVarshney01
Copy link
Owner

It looks like an issue related to the Tauri cli (link).

I have fixed some error handling. Can you try again?

If that doesn’t work,
don't select the Tauri addon instead, manually run this command inside the web folder

bunx @tauri-apps/cli@latest init --app-name=my-better-t-app --window-title=my-better-t-app --frontend-dist=../dist --dev-url=http://localhost:3001 --before-dev-command="bun run dev" --before-build-command="bun run build"

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

No branches or pull requests

2 participants