[TIL] Node: specifying the versions a package works on

1 min readnode, npm

TIL about configuration engines in package.json, which can be used as a best-practice for explicitly specifying under what versions of node and npm a package can be installed:

"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},

Note:

See: