Merge pull request #99 from shumaiOne/fix/npm-binary-lookup

fix(cli): resolve platform binary path resolution under nested node_modules
This commit is contained in:
Yiling-J
2026-06-12 20:36:11 +08:00
committed by GitHub
+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 = ''