Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
commands
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
es6
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
utils
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
workspaces
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
arborist-cmd.js
1.59
KB
-rw-r--r--
2023-01-17 06:00
base-command.js
5.27
KB
-rw-r--r--
2024-03-03 10:00
cli-entry.js
2.71
KB
-rw-r--r--
2023-08-09 13:29
cli.js
210
B
-rw-r--r--
2023-08-09 13:29
lifecycle-cmd.js
554
B
-rw-r--r--
2023-01-17 06:00
npm.js
13.32
KB
-rw-r--r--
2024-04-10 09:40
package-url-cmd.js
1.89
KB
-rw-r--r--
2023-06-20 17:20
Save
Rename
/* eslint-disable max-len */ // Separated out for easier unit testing module.exports = async (process, validateEngines) => { // set it here so that regardless of what happens later, we don't // leak any private CLI configs to other programs process.title = 'npm' // if npm is called as "npmg" or "npm_g", then run in global mode. if (process.argv[1][process.argv[1].length - 1] === 'g') { process.argv.splice(1, 1, 'npm', '-g') } const satisfies = require('semver/functions/satisfies') const exitHandler = require('./utils/exit-handler.js') const Npm = require('./npm.js') const npm = new Npm() exitHandler.setNpm(npm) // only log node and npm paths in argv initially since argv can contain sensitive info. a cleaned version will be logged later const log = require('./utils/log-shim.js') log.verbose('cli', process.argv.slice(0, 2).join(' ')) log.info('using', 'npm@%s', npm.version) log.info('using', 'node@%s', process.version) // At this point we've required a few files and can be pretty sure we dont contain invalid syntax for this version of node. It's possible a lazy require would, but that's unlikely enough that it's not worth catching anymore and we attach the more important exit handlers. validateEngines.off() process.on('uncaughtException', exitHandler) process.on('unhandledRejection', exitHandler) // It is now safe to log a warning if they are using a version of node that is not going to fail on syntax errors but is still unsupported and untested and might not work reliably. This is safe to use the logger now which we want since this will show up in the error log too. if (!satisfies(validateEngines.node, validateEngines.engines)) { log.warn('cli', validateEngines.unsupportedMessage) } let cmd // Now actually fire up npm and run the command. // This is how to use npm programmatically: try { await npm.load() // npm -v if (npm.config.get('version', 'cli')) { npm.output(npm.version) return exitHandler() } // npm --versions if (npm.config.get('versions', 'cli')) { npm.argv = ['version'] npm.config.set('usage', false, 'cli') } cmd = npm.argv.shift() if (!cmd) { npm.output(npm.usage) process.exitCode = 1 return exitHandler() } await npm.exec(cmd) return exitHandler() } catch (err) { if (err.code === 'EUNKNOWNCOMMAND') { const didYouMean = require('./utils/did-you-mean.js') const suggestions = await didYouMean(npm.localPrefix, cmd) npm.output(`Unknown command: "${cmd}"${suggestions}\n`) npm.output('To see a list of supported npm commands, run:\n npm help') process.exitCode = 1 return exitHandler() } return exitHandler(err) } }