mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 09:47:15 +00:00
fix(cli): resolve platform binary path resolution under nested node_modules
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user