Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

outdated: exitcode still 1 with --silent flag #16083

@fearphage

Description

@fearphage

npm outdated changed to exiting with exit code 1 when things are outdated. According to #14013, the --silent flag should get the classic functionality of always exiting with exit code 0 (whether up to date or not). I am not able to confirm that however. I don't see any tests for that case either.

Node version: 7.7.1
NPM vesion: 4.1.2

➜  unity git:(starting-point) ✗ node --version
v7.7.1
➜  unity git:(starting-point) ✗ npm --version
4.1.2
➜  unity git:(starting-point) ✗ npm outdated > /dev/null; echo $?
1
➜  unity git:(starting-point) ✗ npm outdated --silent > /dev/null; echo $?
1
➜  unity git:(starting-point) ✗ npm --silent outdated > /dev/null; echo $?       
1
➜  unity git:(starting-point) ✗ npm --silent outdated --silent > /dev/null; echo $?
1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions