Skip to content

[BUG] npm install of npm@next failing during container build (No matching version found for npm@next) #3876

Closed
@vguaglione

Description

@vguaglione

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

We have a number of overnight builds that run to build node functionality. Our container began failing late last week and it was determined that the "npm install -g npm@next" command was the issue.

Container build is performed via standard "docker build" command.

Build output indicates the following:

#6 8.588 Run npm audit for details.
#6 8.589 npm notice
#6 8.589 npm notice New major version of npm available! 7.24.0 -> 8.0.0
#6 8.589 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.0.0
#6 8.589 npm notice Run npm install -g npm@8.0.0 to update!
#6 8.589 npm notice
#6 9.176 npm ERR! code ETARGET
#6 9.181 npm ERR! notarget No matching version found for npm@next.
#6 9.181 npm ERR! notarget In most cases you or one of your dependencies are requesting
#6 9.181 npm ERR! notarget a package version that doesn't exist.

How do we fix this issue?

Expected Behavior

Container builds successfully.

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • OS: ubuntu 18.04 container image
  • Node: v16.10.0
  • npm: next?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Informationfurther information is requestedRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions