Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2020-10-07 00:14:41 +0300
committernlf <quitlahok@gmail.com>2020-10-07 00:14:41 +0300
commit8b348e5d9c11d2f79058e1ed95987fd2c6a146b0 (patch)
tree673dbc9552f375d47542f88307b0cadd23c4d31b
parentdcca0ba60e35a11fd286f4969a0aa8c561fa5bc2 (diff)
only escape arguments, not the command namenlf/npx-run-existing-bins
-rw-r--r--lib/exec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exec.js b/lib/exec.js
index a4e9fc16a..5baa9e994 100644
--- a/lib/exec.js
+++ b/lib/exec.js
@@ -90,7 +90,7 @@ const exec = async args => {
if (binExists) {
return await runScript({
- cmd: args.map(escapeArg).join(' ').trim(),
+ cmd: [args[0], ...args.slice(1).map(escapeArg)].join(' ').trim(),
banner: false,
// we always run in cwd, not --prefix
path: process.cwd(),