mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-05 06:28:47 -04:00
refactor: add TODO comment
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user