Skip to content

Commit 6f0fef2

Browse files
committed
Remove --no-save from npm fix installer
1 parent 50fdab5 commit 6f0fef2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/fix/npm-fix.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ async function install(
3232
__proto__: null,
3333
...options,
3434
} as InstallOptions
35+
const useDebug = isDebug('stdio')
3536
const args = [
3637
'--ignore-scripts',
3738
'--no-audit',
3839
'--no-fund',
3940
'--no-progress',
40-
'--no-save',
41-
'--silent',
41+
...(useDebug ? [] : ['--silent']),
4242
...(extraArgs ?? []),
4343
]
4444
const quotedCmd = `\`${pkgEnvDetails.agent} install ${args.join(' ')}\``
@@ -52,7 +52,7 @@ async function install(
5252
await runAgentInstall(pkgEnvDetails, {
5353
args,
5454
spinner,
55-
stdio: isDebug('stdio') ? 'inherit' : 'ignore',
55+
stdio: useDebug ? 'inherit' : 'ignore',
5656
})
5757
} catch (e) {
5858
debugFn('error', `caught: ${quotedCmd} failed`)

0 commit comments

Comments
 (0)