From bbd70a23dbb8d973d84a586fed669be23730b796 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 7 Mar 2018 22:39:54 +0200 Subject: [PATCH] refactor: add TODO comment --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 6abf59090e..5dbe593ee8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,6 +54,8 @@ export default async ( // This is what npm does as well, overriding process.execPath with the resolved location of Node. // The value of process.execPath is changed only for the duration of config initialization. // Otherwise, npmConfig.globalPrefix would sometimes have the bad location. + // + // TODO: use this workaround only during global installation const originalExecPath = process.execPath try { const node = await which(process.argv[0])