If a package.json file has an engines field like this:
"engines" : {
"node" : "~>12"
},
What does the ~>
mean?
If a package.json file has an engines field like this:
"engines" : {
"node" : "~>12"
},
What does the ~>
mean?
engines
Sets which versions of Node.js and other commands this package/app work on
example:
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0",
"yarn": "^0.13.0"
}
So if you see ~>12.0.1 it means to install version 12.0.1 or the latest patch version such as 12.0.4