Skip to content

Commit 618f5cb

Browse files
committed
allow --save without args
1 parent db5d1d7 commit 618f5cb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/cli/commands/install.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,6 @@ export async function run(
386386
flags: Object,
387387
args: Array<string>
388388
): Promise<void> {
389-
if (hasSaveFlags(flags) && !args.length) {
390-
throw new MessageError("Missing package names for --save flags");
391-
}
392-
393389
let lockfile = await Lockfile.fromDirectory(config.cwd, reporter, {
394390
strictIfPresent: isStrictLockfile(flags, args),
395391
save: hasSaveFlags(flags) || flags.initMirror

0 commit comments

Comments
 (0)