Skip to content

Commit

Permalink
chore(package): relax Node and npm version requirements
Browse files Browse the repository at this point in the history
Relax the `node` and `npm` version requirements specified in the
`engines` property of the project's `package.json` file.

Yarn checks the version range specified in a package's
`engines.node` property of the `package.json` file.

If you attempt to install a package using a Node version that does not
fall within that package's `engines.node` version range, Yarn will fail
during the install process. This is opposed to printing a warning like
the `npm` package manager does in this situation.

To install a package using a Node version outside of the package's range
you can pass the `--ignore-engines` flag to `yarn`.

Yarn issue related to the strict treatment of the `engines` data:
- yarnpkg/yarn#1102

We are relaxing the range since it does not seem Yarn will, any time
soon, provide a more convenient means of installing packages with
stricter `node` and `npm` version ranges.

While our `node` and `npm` version range was meant to correspond with
our Node LTS support policy, the disruption is too great to our
community. Instead, we will simply need to communicate our support
policy directly when engaging our community.

Closes #45
  • Loading branch information
hutson committed Mar 19, 2018
1 parent a38c8c8 commit 68c4c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/conventional-github-releaser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"bugs": "https://github.com/conventional-changelog/conventional-github-releaser/issues",
"description": "Make a new GitHub release from git metadata.",
"engines": {
"node": "^6.9.0 || ^4.2.0",
"npm": "^4.0.0 || ^3.0.0 || ^2.1.9"
"node": ">=4.2.0",
"npm": ">=2.1.9"
},
"files": [
"src/"
Expand Down

0 comments on commit 68c4c72

Please sign in to comment.