Skip to content

[BUG] --silent suppresses output from run commands #1958

@G-Rath

Description

@G-Rath

Previously in pre-npm 7 --silent would only silence output from npm, meaning that run would still output the output from whatever is being run.

Now, it silences everything, meaning we can't use --silent to silence the npm ERR! messages that follow whenever a command fails.

Current Behavior:

> npm run typecheck --silent

Expected Behavior:

> npm run typecheck --silent

src/audit.ts:137:13 - error TS2345: Argument of type 'AuditMetadata | NpmAuditMetadataV2' is not assignable to parameter of type 'AuditMetadata'.
  Type 'NpmAuditMetadataV2' is missing the following properties from type 'AuditMetadata': devDependencies, optionalDependencies, totalDependencies

137             auditOutput.metadata
                ~~~~~~~~~~~~~~~~~~~~


Found 1 error.

Steps To Reproduce:

Environment:

  • OS: Ubuntu 18.04 (via WSLv1, Windows 10)
  • Node: 14.4.0
  • npm: 7.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions