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
path: root/lib
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-05-03 23:53:10 +0300
committerGitHub <noreply@github.com>2022-05-03 23:53:10 +0300
commitb9a966cf33cfa9b1e5f16c16219f63633bbe19d6 (patch)
tree99f5dc1090bcf688e4601f1ecbb697b4ec48a85d /lib
parent62af3a1dc003cf23c563d18437be81f61e65cb49 (diff)
fix(exec): ignore packageLockOnly flag (#4843)
Diffstat (limited to 'lib')
-rw-r--r--lib/commands/exec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/commands/exec.js b/lib/commands/exec.js
index f764cea52..d9a686cc9 100644
--- a/lib/commands/exec.js
+++ b/lib/commands/exec.js
@@ -73,6 +73,9 @@ class Exec extends BaseCommand {
return libexec({
...flatOptions,
+ // we explicitly set packageLockOnly to false because if it's true
+ // when we try to install a missing package, we won't actually install it
+ packageLockOnly: false,
args,
call,
localBin,