Skip to content
Discussion options

You must be logged in to vote

Both warnings are one advisory: GHSA-rj75-hqrm-r3gf in postcss-selector-parser (fixed in 6.1.5). @tailwindcss/typography@0.5.20 pins that dependency to exactly 6.0.10, so npm can't update it inside the allowed range. npm audit fix --force "fixes" it by going back to typography 0.5.4, an old release from before that dependency existed. That's why it looked like a version that doesn't exist.

Undo the downgrade and override the transitive version instead:

{
  "dependencies": {
    "@tailwindcss/typography": "^0.5.20"
  },
  "overrides": {
    "@tailwindcss/typography": {
      "postcss-selector-parser": "^6.1.5"
    }
  }
}
npm install
npm ls postcss-selector-parser   # 6.1.5
npm audit      …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@slyannah
Comment options

Answer selected by slyannah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants