0

What does the sign @^ in a package.json file mean?

postcss-colormin@^4.0.3:
user1941537
  • 6,097
  • 14
  • 52
  • 99
  • `name@version`, the caret is explained in the dupe. – jonrsharpe Jun 10 '19 at 08:34
  • 2
    Possible duplicate of [What's the difference between tilde(~) and caret(^) in package.json?](https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json) – jonrsharpe Jun 10 '19 at 08:34

1 Answers1

0

According to the docs, the @ represents the version while the ^ represents that the specified version should be compatible with whatever version npm i will install.

Your specific example will allow npm to install the latest version of postcss-colormin that is compatible with v4.0.3.

markovchain
  • 515
  • 1
  • 10
  • 25