Skip to content
Discussion options

You must be logged in to vote

The behavior you’re seeing isn’t a bug with npm audit fix itself but rather how the tmp package versions have been published.

A few key points:

  1. Your declared range (^0.0.33)

    • With semver, anything before 1.0.0 is special:

      • ^0.0.x only allows patch updates (it won’t jump to 0.1.0).
      • ^0.x.y allows updates within that minor version, but not across minors.
    • So ^0.0.33 means: “≥0.0.33 and <0.1.0.” That range can never reach 0.2.x.

  2. Why npm audit fix doesn’t install 0.2.5

    • npm audit fix won’t go outside your declared version range unless you explicitly pass --force.
    • Since your package.json pins ^0.0.33, it will stick to the 0.0.x line.
  3. Why ^0.2.0 stops at 0.2.4

    • 0.2.5 was flagged by t…

Replies: 1 comment 2 replies

This comment was marked as off-topic.

@neil-hardlight
Comment options

@neil-hardlight
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Question Ask and answer questions about GitHub features and usage npm Discussions around programming langages, open source and software development
2 participants