diff --git a/packages/io/src/io-util.ts b/packages/io/src/io-util.ts index fd3a3e17..447c5900 100644 --- a/packages/io/src/io-util.ts +++ b/packages/io/src/io-util.ts @@ -76,7 +76,7 @@ export async function tryGetExecutablePath( let stats: fs.Stats | undefined = undefined try { // test file exists - stats = await stat(filePath) + stats = await lstat(filePath) } catch (err) { if (err.code !== 'ENOENT') { // eslint-disable-next-line no-console @@ -106,7 +106,7 @@ export async function tryGetExecutablePath( stats = undefined try { - stats = await stat(filePath) + stats = await lstat(filePath) } catch (err) { if (err.code !== 'ENOENT') { // eslint-disable-next-line no-console