Skip to content

[BUG] npm update global not updating packages to latest #746

@johnkennedy9147

Description

@johnkennedy9147

Attempting to update all globally installed packages docs state should go to latest but this does not happen. Possibly updating as if applying semver ^ range.

npm outdated shows:

Package Current Wanted Latest Location
eslint 5.16.0 5.16.0 6.8.0 global
gatsby-cli 2.8.21 2.8.28 2.8.28 global
lighthouse 4.3.0 4.3.1 5.6.0 global
prettier 1.18.2 1.19.1 1.19.1 global
rimraf 2.6.3 2.7.1 3.0.1 global
yarn 1.15.2 1.21.1 1.21.1 global

ran npm update

npm outdated now shows

Package Current Wanted Latest Location
eslint 5.16.0 5.16.0 6.8.0 global
lighthouse 4.3.1 4.3.1 5.6.0 global

Expectation was that both would have been updated to latest.
eslint not updated.
lighthouse only updated to highest V4 version published (consistent with semver ^)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixing

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions