25 lines
976 B
Diff
25 lines
976 B
Diff
deps/npm/node_modules/@npmcli/config/lib/index.js | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/deps/npm/node_modules/@npmcli/config/lib/index.js b/deps/npm/node_modules/@npmcli/config/lib/index.js
|
|
index b09ecc47..8b4a4981 100644
|
|
--- a/deps/npm/node_modules/@npmcli/config/lib/index.js
|
|
+++ b/deps/npm/node_modules/@npmcli/config/lib/index.js
|
|
@@ -5,6 +5,7 @@ const nopt = require('nopt')
|
|
const mapWorkspaces = require('@npmcli/map-workspaces')
|
|
const rpj = require('read-package-json-fast')
|
|
const log = require('proc-log')
|
|
+const win = require('os').type() === 'Windows_NT'
|
|
|
|
const { resolve, dirname, join } = require('path')
|
|
const { homedir } = require('os')
|
|
@@ -343,7 +344,7 @@ class Config {
|
|
|
|
if (this.env.PREFIX) {
|
|
this.globalPrefix = this.env.PREFIX
|
|
- } else if (this.platform === 'win32') {
|
|
+ } else if (win) {
|
|
// c:\node\node.exe --> prefix=c:\node\
|
|
this.globalPrefix = dirname(this.execPath)
|
|
} else {
|