Skip to content

[BUG] "npm update" doesn't work #3410

@arsinclair

Description

@arsinclair

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

$ npm outdated
Package      Current   Wanted  Latest  Location
jest          26.6.3   26.6.3  27.0.4  node_modules/jest
$ npm update
$ npm update jest@latest
$ npm update [email protected]
$ npm outdated
Package      Current   Wanted  Latest  Location
jest          26.6.3   26.6.3  27.0.4  node_modules/jest

As we can see, jest should be upgraded to 27.0.4, but it is not.

Expected Behavior

Per https://docs.npmjs.com/updating-packages-downloaded-from-the-registry

In your project root directory, run the update command:
$ npm update
To test the update, run the outdated command. There should not be any output
$ npm outdated

There should be no output and the package should be upgraded to the latest version.

Environment

  • OS: Windows 10
  • Node: v14.17.0
  • npm: v7.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 releasepr: needs documentationpull request requires docs before merging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions