Skip to content

Commit 3e291db

Browse files
committed
log err
1 parent 50bf8ec commit 3e291db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ const getPrefix = () => {
6565
function tryNpmPath() {
6666
try {
6767
return fs.realpathSync(require('which').sync('npm'));
68-
} catch (err) { /* do nothing */ }
68+
} catch (err) {
69+
/* do nothing */
70+
console.log(err);
71+
}
6972
}
7073

7174
function tryConfigPath(configPath) {

0 commit comments

Comments
 (0)