 deps/npm/node_modules/@npmcli/config/lib/index.js | 3 ++-
 deps/npm/node_modules/bin-links/lib/bin-target.js | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/deps/npm/node_modules/@npmcli/config/lib/index.js b/deps/npm/node_modules/@npmcli/config/lib/index.js
index 9c1fad0c..cbd90225 100644
--- a/deps/npm/node_modules/@npmcli/config/lib/index.js
+++ b/deps/npm/node_modules/@npmcli/config/lib/index.js
@@ -3,6 +3,7 @@ const { walkUp } = require('walk-up-path')
 const ini = require('ini')
 const nopt = require('nopt')
 const { log, time } = require('proc-log')
+const win = require('os').type() === 'Windows_NT'
 
 const { resolve, dirname, join } = require('node:path')
 const { homedir } = require('node:os')
@@ -325,7 +326,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 {
diff --git a/deps/npm/node_modules/bin-links/lib/bin-target.js b/deps/npm/node_modules/bin-links/lib/bin-target.js
index 0629285d..9b8c8371 100644
--- a/deps/npm/node_modules/bin-links/lib/bin-target.js
+++ b/deps/npm/node_modules/bin-links/lib/bin-target.js
@@ -1,9 +1,9 @@
-const isWindows = require('./is-windows.js')
+const win = require('os').type() === 'Windows_NT'
 const getPrefix = require('./get-prefix.js')
 const getNodeModules = require('./get-node-modules.js')
 const { dirname } = require('path')
 
 module.exports = ({ top, path }) =>
   !top ? getNodeModules(path) + '/.bin'
-  : isWindows ? getPrefix(path)
+  : win ? getPrefix(path)
   : dirname(getPrefix(path)) + '/bin'
