diff --git a/lib/cli/entry.js b/lib/cli/entry.js index db61dd74f56b0..fc196b8e234fc 100644 --- a/lib/cli/entry.js +++ b/lib/cli/entry.js @@ -61,7 +61,7 @@ module.exports = async (process, validateEngines) => { log.error( 'arg', 'Argument starts with non-ascii dash, this is probably invalid:', - nonDashArgs.join(', ') + require('@npmcli/redact').redactLog(nonDashArgs.join(', ')) ) }