/opt/cpanel/ea-nodejs22/lib/node_modules/npm/bin
NameSizeModeActions
node-gyp-bin/-0755rm
npm20690755editdlrm
npm-cli.js690755editdlrm
npm-prefix.js8490755editdlrm
npm.cmd5380644editdlrm
npx20690755editdlrm
npx-cli.js29360755editdlrm
npx.cmd5380644editdlrm
Edit: /opt/cpanel/ea-nodejs22/lib/node_modules/npm/bin/npm-prefix.js (849B)
#!/opt/cpanel/ea-nodejs22/bin/node // This is a single-use bin to help windows discover the proper prefix for npm // without having to load all of npm first // It does not accept argv params const path = require('node:path') const Config = require('@npmcli/config') const { definitions, flatten, shorthands } = require('@npmcli/config/lib/definitions') const config = new Config({ npmPath: path.dirname(__dirname), // argv is explicitly not looked at since prefix is not something that can be changed via argv argv: [], definitions, flatten, shorthands, excludeNpmCwd: false, }) async function main () { try { await config.load() // eslint-disable-next-line no-console console.log(config.globalPrefix) } catch (err) { // eslint-disable-next-line no-console console.error(err) process.exit(1) } } main()