We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ee2b38e + 61481a2 commit 8c3c46fCopy full SHA for 8c3c46f
1 file changed
dist/npm/index.js
@@ -224,7 +224,8 @@ let continueProcess = function (askRemoveGlobalFolder) {
224
225
if (npmLinkExists || !globalDir || packageDir.startsWith(npmGlobalDir)) {
226
try {
227
- globalDir = normalizePath(execSync('npm bin -g').toString());
+ const nodeDir = normalizePath(execSync('npm config get prefix').toString());
228
+ globalDir = path.join(nodeDir, 'bin')
229
globalInstall = true;
230
} catch (e) {
231
console.error(e);
0 commit comments