Skip to content

Commit

Permalink
use realpath native
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Aug 17, 2024
1 parent a51c717 commit 4eb8b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function tryNpmPath() {
try {
const npm = require('which').sync('npm');
console.log(npm);
return fs.realpathSync(npm);
return fs.realpathSync.native(npm);
} catch (err) { /* do nothing */ }
}

Expand Down

0 comments on commit 4eb8b3c

Please sign in to comment.