Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/.nvm/versions/node/v18.17.1/lib/node_modules/npm/node_modules/libnpmexec/lib/ drwxr-xr-x |
Viewing file: Select action/file-type: const ciInfo = require('ci-info') const runScript = require('@npmcli/run-script') const readPackageJson = require('read-package-json-fast') const npmlog = require('npmlog') const log = require('proc-log') const noTTY = require('./no-tty.js') const run = async ({ args, call, flatOptions, locationMsg, output = () => {}, path, binPaths, runPath, scriptShell, }) => { // turn list of args into command string const script = call || args.shift() || scriptShell // do the fakey runScript dance // still should work if no package.json in cwd const realPkg = await readPackageJson(`${path}/package.json`) .catch(() => ({})) const pkg = { ...realPkg, scripts: { ...(realPkg.scripts || {}), npx: script, }, } npmlog.disableProgress() try { if (script === scriptShell) { if (!noTTY()) { if (ciInfo.isCI) { return log.warn('exec', 'Interactive mode disabled in CI environment') } locationMsg = locationMsg || ` at location:\n${flatOptions.chalk.dim(runPath)}` output(`${ flatOptions.chalk.reset('\nEntering npm script environment') }${ flatOptions.chalk.reset(locationMsg) }${ flatOptions.chalk.bold('\nType \'exit\' or ^D when finished\n') }`) } } return await runScript({ ...flatOptions, pkg, banner: false, // we always run in cwd, not --prefix path: runPath, binPaths, event: 'npx', args, stdio: 'inherit', scriptShell, }) } finally { npmlog.enableProgress() } } module.exports = run |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]-- |