From 13f1dd6e9a337788478810645d303e6fdc494195 Mon Sep 17 00:00:00 2001 From: David Recuenco Date: Wed, 5 Feb 2020 13:23:20 +0100 Subject: [PATCH] ADD changes from https://github.com/sanathkr/go-npm/pull/7 --- src/common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common.js b/src/common.js index 27062c7..b60fb29 100644 --- a/src/common.js +++ b/src/common.js @@ -41,6 +41,7 @@ function getInstallationPath(callback) { dir = stdout.trim(); } + dir = dir.replace(/node_modules.*\/\.bin/, 'node_modules/.bin'); mkdirp.sync(dir); callback(null, dir);