-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
This line:
Line 57 in 49684bd
| prefix = process.env.APPDATA |
//...
if (isWindows()) {
// c:\node\node.exe --> prefix=c:\node\
prefix = process.env.APPDATA
? path.join(process.env.APPDATA, 'npm')
: path.dirname(process.execPath);
} else {
//...
It would've give proper results without assuming the npm is under the APPDATA, i.e. if it's just:
prefix = path.dirname(process.execPath);
Is there any reason for assuming the npm runs under the APPDATA path?
Currently, this gives back the wrong prefix on Windows with nvm (node v8.11.1; nvm 1.1.5)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels