From 3e291db8f48dd1cbd12819172e2bdda48f237d85 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Sat, 17 Aug 2024 10:58:52 -0400 Subject: [PATCH] log err --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1defb68..977a3f9 100644 --- a/index.js +++ b/index.js @@ -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) {