We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50fdab5 commit 6f0fef2Copy full SHA for 6f0fef2
src/commands/fix/npm-fix.mts
@@ -32,13 +32,13 @@ async function install(
32
__proto__: null,
33
...options,
34
} as InstallOptions
35
+ const useDebug = isDebug('stdio')
36
const args = [
37
'--ignore-scripts',
38
'--no-audit',
39
'--no-fund',
40
'--no-progress',
- '--no-save',
41
- '--silent',
+ ...(useDebug ? [] : ['--silent']),
42
...(extraArgs ?? []),
43
]
44
const quotedCmd = `\`${pkgEnvDetails.agent} install ${args.join(' ')}\``
@@ -52,7 +52,7 @@ async function install(
52
await runAgentInstall(pkgEnvDetails, {
53
args,
54
spinner,
55
- stdio: isDebug('stdio') ? 'inherit' : 'ignore',
+ stdio: useDebug ? 'inherit' : 'ignore',
56
})
57
} catch (e) {
58
debugFn('error', `caught: ${quotedCmd} failed`)
0 commit comments