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.
1 parent 1161b67 commit fb7ef8dCopy full SHA for fb7ef8d
.changes/clijs-node-version-20.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tauri-apps/cli': patch
3
4
+
5
+Fix nodejs binary regex when `0` is in the version name, for example `node-20`
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)\-?([0-9]*)*$/g)) {
24
const managerStem = process.env.npm_execpath
25
? path.parse(process.env.npm_execpath).name.toLowerCase()
26
: null
0 commit comments