We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
node-<version>
1 parent e513b69 commit 1c8229fCopy full SHA for 1c8229f
.changes/clijs-node-version.md
@@ -0,0 +1,5 @@
1
+---
2
+'cli.js': patch
3
4
+
5
+Fix crash when nodejs binary has the version in its name, for example `node-18`
tooling/cli/node/tauri.js
@@ -20,7 +20,7 @@ if (bin === '@tauri-apps/cli') {
20
}
21
// Even if started by a package manager, the binary will be NodeJS.
22
// Some distribution still use "nodejs" as the binary name.
23
-else if (binStem.match(/(nodejs|node)([1-9]*)*$/g)) {
+else if (binStem.match(/(nodejs|node)\-?([1-9]*)*$/g)) {
24
const managerStem = process.env.npm_execpath
25
? path.parse(process.env.npm_execpath).name.toLowerCase()
26
: null
0 commit comments