refactor: add TODO comment

This commit is contained in:
Zoltan Kochan
2018-03-07 22:39:54 +02:00
parent a4bba5ebe3
commit bbd70a23db

View File

@@ -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])