tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.01k stars 2.57k forks source link

[bug] Can't run any Tauri CLI commands #11642

Open disnos9 opened 3 days ago

disnos9 commented 3 days ago

Describe the bug

Brand new fresh install of Windows 10. Rust, Batch Tools (or C++ tools) are installed, Node.js is installed. File is there.

image

Happens on brand new Tauri instances (tested both with the npm creation script, and the PowerShell creation script) and a Tauri instance I downloaded over from my Mac (on a higher version that runs flawlessly)

Still occours even after removing all Node modules. Occours on latest node.js version. Node downloaded from the official Nodejs website.

Reproduction

Run any Tauri command under any enviornment. These will bring up the error:

npx run tauri dev npm run tauri dev tauri dev

Expected behavior

Expected Rust to compile the program and then open up my program.

Full tauri info output

PS C:\Users\dino\Desktop\iBallexus> npm run tauri info

> iballexus@0.1.0 tauri
> tauri info

C:\Users\dino\Desktop\iBallexus\node_modules\@tauri-apps\cli\index.js:312
    throw loadError
    ^

Error: The specified module could not be found.
\\?\C:\Users\dino\Desktop\iBallexus\node_modules\@tauri-apps\cli-win32-x64-msvc\cli.win32-x64-msvc.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (C:\Users\dino\Desktop\iBallexus\node_modules\@tauri-apps\cli\index.js:76:29)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v18.20.4
PS C:\Users\dino\Desktop\iBallexus>

Stack trace

PS C:\Users\dino\Desktop\iBallexus> npm run tauri dev

> iballexus@0.1.0 tauri
> tauri dev

C:\Users\dino\Desktop\iBallexus\node_modules\@tauri-apps\cli\index.js:312
    throw loadError
    ^

Error: The specified module could not be found.
\\?\C:\Users\dino\Desktop\iBallexus\node_modules\@tauri-apps\cli-win32-x64-msvc\cli.win32-x64-msvc.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (C:\Users\dino\Desktop\iBallexus\node_modules\@tauri-apps\cli\index.js:76:29)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v18.20.4
PS C:\Users\dino\Desktop\iBallexus>

Additional context

Fresh install of Windows 10. Bootcamp on Macbook Air 2015, Intel i5.

FabianLars commented 3 days ago

hmm, never seen this one before i think. Can you try it with a newer nodejs version maybe?

disnos9 commented 3 days ago

I tried everything the same way with Node.js versions v22 (latest), v20, and v18 (currently on)

Restarted my computer multiple times too.

On Mon, Nov 11, 2024 at 9:29 AM Fabian-Lars @.***> wrote:

hmm, never seen this one before i think. Can you try it with a newer nodejs version maybe?

— Reply to this email directly, view it on GitHub https://github.com/tauri-apps/tauri/issues/11642#issuecomment-2468312005, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4QAU6PZUGGKOU4ZZJ4JUV32AC5NLAVCNFSM6AAAAABRQ5P3MSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGMYTEMBQGU . You are receiving this because you authored the thread.Message ID: @.***>