#'tauri' is not recognized as an internal or external command, operable program or batch file.
55 messages · Page 1 of 1 (latest)
try npm run tauri
still the same
did you forgot to do npm install in the prject?
uuumm i didn't
I re-installed the node modules but now I'm getting this: error: failed to select a version for the requirement once_cell = "^1"
thats probably some module
is it missing ?
try to give it an actual version
maybe its 1.0
or something
and where's the module version located ?
try bigger then 1.0.1
it should be on package.json
Give us the output of tauri info
no info has been given because is not recognized
and I got this
tauri : The term 'tauri' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- tauri info
-
+ CategoryInfo : ObjectNotFound: (tauri:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Did you install the Tauri CLI?
NPM: @tauri-apps/cli
Gimme the contents of package.json
{
"name": "base-64-encode-decode",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli": "^1.4.0"
},
"dependencies": {
"once_cell": "^1.0.1"
}
}
And you run the Tauri CLI using npm run tauri -- info?
(Or with pnpm pnpm tauri info)
Yep I got some info
[✔] Environment
- OS: Windows 10.0.19044 X64
✔ WebView2: 114.0.1823.58
✔ MSVC: Visual Studio Community 2019
✔ rustc: 1.59.0 (9d1b2106e 2022-02-23)
✔ Cargo: 1.59.0 (49d8809dc 2022-02-10)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 19.8.1
- pnpm: 7.5.0
- npm: 9.5.1
Takes a few seconds but there should be more info than that. But regardless, does that solve your issue then? Because running it like that you clearly got it to work 🙂
Also please run rustup update, you're using 1.59 of Rust, we're on 1.70 now
Oh diudn't saw the other info but here's
[-] Packages
- tauri [RUST]: 1.4.1
- tauri-build [RUST]: 1.4.0
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.2
- @tauri-apps/api [NPM]: not installed!
- @tauri-apps/cli [NPM]: 1.4.0
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../src
- devPath: ../src
try npm install @tauri-apps/api
ok now it downloads all of the dependencies
The API is only needed if it's in the code you're getting the issue, like, in the devtools for example , it's not necessary for just running a Tauri app
it worked now! thx all!
I got another problem.
I created a new project and I can't install the node modules with the npm i
Gimme some errors to work with
PS C:\Users...\OneDrive\Desktop\code stuff\tauri_Apps> npm i
up to date, audited 72 packages in 2s
run npm fund for details
4 vulnerabilities (3 moderate, 1 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit for details.
PS C:\Users\40754\OneDrive\Desktop\code stuff\tauri_Apps> npm run tauri dev
npm ERR! Missing script: "tauri"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users...\AppData\Local\npm-cache_logs\2023-06-28T19_53_14_750Z-debug-0.log
PS C:\Users...\OneDrive\Desktop\code stuff\tauri_Apps> npm install
up to date, audited 72 packages in 3s
16 packages are looking for funding
run npm fund for details
4 vulnerabilities (3 moderate, 1 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit for details.
PS C:\Users...\OneDrive\Desktop\code stuff\tauri_Apps> npm run tauri dev
npm ERR! Missing script: "tauri"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users...\AppData\Local\npm-cache_logs\2023-06-28T19_58_13_843Z-debug-0.log
What the heck is wrong with your npm o.O
One potential issue I see here is, how did you create the project? What command did you run to make it?
npm create tauri-app@latest
but it seems very odd
Assuming this is what you did then it certainly seems like your system is a bit broken
Either that or you're using some weird shell. Lots of people use Git Bash for example and it can cause all kinds of issues. Try running it in cmd.exe instead
Uuumm okk
yeah, VSCode terminal is acting up
bru
Which shell does it say it's using?
I usually recommend just going with ye old good and faithful cmd.exe for all your developer needs
powershell
Powershell and I never got along. It supposedly offers some cool stuff - that you never ever actually end up using
Try just configuring VSCode to use cmd.exe instead
It should be your powershell that's a bit messed up
Which miiiiight be fixable by just rebooting or installing a newer version of powershell
oohh
does the web view thing supports unicode chars ?
Yes the web view thing supports unicode chars. Not 100% sure if all of them support the entire unicode table, but at the very least they all support some subset of it. Check what Safari, Chrome and Epiphany support if you want a better idea of what your Tauri apps will support
Well
I tried using some sort of icons, and the menu bar was supposted to have some down arrows
Not entirely sure why that happens, but in general it's better to use a font instead, it ensures what you're using is actually available as well as makes sure all platforms look the same
I think I heard someone use this at some point
https://fonts.google.com/noto/specimen/Noto+Color+Emoji
the chars from the menubar are stored in a svg
oh, ik
I can use icons from google fonts instead