schultyy / avm

Installs Ruby and node.js on your machine
11 stars 4 forks source link

Respect semver requirements in package.json #67

Closed schultyy closed 8 years ago

schultyy commented 8 years ago

engine in package.json can be denoted in semver notation. avm needs to be able to handle that case. For that, Steve Klabnik's semver crate comes in handy. For all node versions >= 4.0.0 it needs to be checked if the denoted version in package.json applies to one of the installed versions on the current system.

All node versions before that need to be treated differently. This needs to be defined.

schultyy commented 8 years ago

For node.js versions < 4 the following rules apply:

schultyy commented 8 years ago

In order to avoid reimplementing a version checker for legacy node versions (< 4.x), autoselect checks for strict equality only. No version ranges etc. are supported