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
[bug] "npm create tauri-app" fails on openSUSE Tumbleweed with "Not a directory" error #193
Comments
can you upload the full log here? |
Sure but I think it's not very helpful. Here is it: |
Might be an issue with this line in the if (binStem === "node" || binStem === "nodejs") {
...
} |
the logs shows that it fails to invoke create-tauri-app, can you try running inside a directory that isn't
Nah this is just used to provide a better name for the cli in the help message |
I tried that already, the current directory doesn't really matter. |
are you using any node manager like |
No, just installed node.js from the Linux repositories. But it uses The
Then it execs this binary replacing itself (execve call). |
It's actually pretty simple to reproduce under Linux:
#!/bin/bash
exec /usr/bin/node18 "$@"
|
based on your last reproduction comment, I have this output: amr - ~ took 4s
❯ yarn create tauri-app
yarn create v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-tauri-app@2.5.0" with binaries:
- create-tauri-app
[####] 4/4
+✔ Package name · usrbinnode185
error: Not a directory (os error 20)
error Command failed.
Exit code: 1
Command: /home/amr/.yarn/bin/create-tauri-app
Arguments:
Directory: /home/amr
Output:
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
amr - ~ took 23s
❯ You can see the highlighting comment is asking for So somehow the cli is invoked like this Now I don't know why this happens but this seems like an issue with the script which I don't have knowledge/time to debug. I am using |
It's not related to libalternative, I have mentioned above that you can reproduce it simply by making a shell script wrapper called |
Describe the bug
Trying to create a project under openSUSE Tumbleweed with
npm create tauri-app
, it fails with the following error:Same error with any other tool (e.g. yarn).
Reproduction
No response
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
I tried running it with
strace
utility and the syscall which fails is:openat(AT_FDCWD, "/usr/bin/node18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
Node.js installation contains two executables:
/usr/bin/node
(which seems to be a stub) and/usr/bin/node18
(the real one).If I rename
/usr/bin/node18
to/usr/bin/node
then everything works.This issue is specific to tauri, I tried for example creating other apps like react and it worked.
The text was updated successfully, but these errors were encountered: