fix(cli): resolve platform binary path resolution under nested node_modules

This commit is contained in:
yiling
2026-06-12 20:34:07 +08:00
parent b5c0eca2fe
commit 1fee0f5a97
+1 -1
View File
@@ -223,7 +223,7 @@ if (platform === 'darwin' && arch === 'arm64') {
const pathsToTry = [
join(__dirname, '..', '..', '..', pkgName, 'bin', binaryName), // Flat node_modules
join(__dirname, '..', '..', 'node_modules', pkgName, 'bin', binaryName), // Nested node_modules
join(__dirname, '..', 'node_modules', pkgName, 'bin', binaryName), // Nested node_modules
]
let binaryPath = ''