diff --git a/packages/safe-chain/src/utils/safeSpawn.js b/packages/safe-chain/src/utils/safeSpawn.js index 895c498..7646d52 100644 --- a/packages/safe-chain/src/utils/safeSpawn.js +++ b/packages/safe-chain/src/utils/safeSpawn.js @@ -16,8 +16,8 @@ function buildCommand(command, args) { function resolveCommandPath(command) { // command will be "npm", "yarn", etc. - // Use 'command -v' to find the full path - const fullPath = execSync(`command -v ${command}`, { + // Use 'which' to find the full path + const fullPath = execSync(`which ${command}`, { encoding: "utf8", shell: true, }).trim();