Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 841 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 841 Bytes

Demo - Enforced package.json engine versions

This demo repository shows how to enforce the engines property in a package.json file. See also this StackOverflow answer.

In the package.json, we're requiring Node >= 14. Because we have a local .npmrc file with engines-strict=true, running npm install with any Node version earlier than 14 will cause an error:

You can see this configuration working by checking out the GitHub action results.