Skip to content

Commit d8e01f2

Browse files
fix: make npm silent to fix socket error (#37)
* fix: make npm silent to fix socket error * feat: silent first
1 parent fb74649 commit d8e01f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/services/cli.services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ const install = async (verbose: boolean) => {
4242
case 'yarn': {
4343
await spawn({
4444
command: pm,
45-
args: ['global', 'add', CLI_PACKAGE],
45+
args: ['--silent', 'global', 'add', CLI_PACKAGE],
4646
silentOut: !verbose
4747
});
4848
break;
4949
}
5050
default: {
5151
await spawn({
5252
command: pm,
53-
args: ['install', '--global', CLI_PACKAGE],
53+
args: ['install', '--global', CLI_PACKAGE, '--silent'],
5454
silentOut: !verbose
5555
});
5656
}

src/services/deps.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const dependencies = async ({where, verbose}: PopulateInput) => {
1919

2020
await spawn({
2121
command: pm,
22-
args: ['install'],
22+
args: ['--silent', 'install'],
2323
silentOut: verbose !== true,
2424
...(nonNullish(where) && where !== '' && {cwd: where})
2525
});

0 commit comments

Comments
 (0)