Currently, I would like to develop using tauri on Windows 11 pro, but I cannot execute it.
As a procedure, I put in Microsoft build tools, put node.js in nvm-windows, ran npm create tauri-app
in npm, and ran npm run tauri dev
, but it didn't work.
I created a dist folder on the root folder before.
This is the configuration.
I set the setting in tauri as npm and react.
I'd like to do it first so that the compilation can run and stand up, so please let me know.
add
Below is the error message.
npm runtauri dev
>[email protected]
>tauri dev
'tauri' is not recognized as an internal or external command, an operational program or batch file.
I ran npm run tauri dev, but it didn't work.
Looking at the information in the question, there seems to be no problem with the procedure, but how does it work?For example, if you see an error message, please tell me the message.
I wrote an article on gihyo.jp a few months ago, so please refer to it as well (using yarn+React).
add
Below is the error message.
npm runtauri dev
>[email protected]
>tauri dev
'tauri' is not recognized as an internal or external command, an operational program or batch file.
Thank you for the error information.
npm package not found (not downloaded).Try running npm run tauri dev
again after executing the following command:
npm install
I think this will work.
My article uses yarn
, so the commands are slightly different, but I think the following message will be helpful when you create the project: "If you answer everything, please enter the command as instructed."
Supplementary
If I understand correctly, running npm runtauri dev
should launch the @tauri-apps/cli
package (in npm install
), which should be the tauri-cli
command (in cargo installtauri
) (in ) https://github.com/tauri-apps/tauri/tree/dev/tooling/cli/node#this-module.
tauri-cli
has just been put in, so it should work if you put the @tauri-apps/cli
package in npm install
.
© 2024 OneMinuteCode. All rights reserved.