Skip to content

Commit d5a64ad

Browse files
committed
Add debug to npm package-lock.json fail
1 parent 684f7c8 commit d5a64ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/optimize.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -970,10 +970,11 @@ export const optimize: CliSubcommand = {
970970
`💡 Re-run ${COMMAND_TITLE} whenever ${lockName} changes.\n This can be skipped once npm ships ${NPM_OVERRIDE_PR_URL}.`
971971
)
972972
}
973-
} catch {
973+
} catch (e: any) {
974974
spinner.error(
975975
`${COMMAND_TITLE}: ${agent} install failed to update ${lockName}`
976976
)
977+
console.error(e)
977978
}
978979
}
979980
}

0 commit comments

Comments
 (0)