Skip to content

Commit

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

function tryConfigPath(configPath) {
Expand Down

0 comments on commit 3e291db

Please sign in to comment.