X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs22/root/usr/lib/node_modules/npm/bin
opt
/
alt
/
alt-nodejs22
/
root
/
usr
/
lib
/
node_modules
/
npm
/
bin
/
ðŸ“
..
ðŸ“
node-gyp-bin
📄
npm
(2.02 KB)
📄
npm-cli.js
(76 B)
📄
npm-prefix.js
(856 B)
📄
npm.cmd
(538 B)
📄
npm.ps1
(763 B)
📄
npx
(2.02 KB)
📄
npx-cli.js
(2.87 KB)
📄
npx.cmd
(538 B)
📄
npx.ps1
(763 B)
Editing: npm-prefix.js
#!/opt/alt/alt-nodejs22/root/usr/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()
Upload File
Create Folder