Merge pull request #614 from resin-io/603-node-upgrade-help

Help users using old node versions to upgrade
This commit is contained in:
Tim Perry 2017-08-10 14:43:29 +02:00 committed by GitHub
commit bad4493867
3 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
### Changed
- Added a link to the Node download page in the warning for users with old Node versions
## [6.3.1] - 2017-08-08

View File

@ -39,7 +39,7 @@ Raven.setContext({
validNodeVersions = require('../package.json').engines.node;
if (!require('semver').satisfies(process.version, validNodeVersions)) {
console.warn("Warning: this version of Node does not match the requirements of this package.\nThis package expects " + validNodeVersions + ", but you're using " + process.version + ".\nThis may cause unexpected behaviour.");
console.warn("Warning: this version of Node does not match the requirements of this package.\nThis package expects " + validNodeVersions + ", but you're using " + process.version + ".\nThis may cause unexpected behaviour.\n\nTo upgrade your Node, visit https://nodejs.org/en/download/\n");
}
globalTunnel = require('global-tunnel-ng');

View File

@ -33,6 +33,9 @@ if not require('semver').satisfies(process.version, validNodeVersions)
Warning: this version of Node does not match the requirements of this package.
This package expects #{validNodeVersions}, but you're using #{process.version}.
This may cause unexpected behaviour.
To upgrade your Node, visit https://nodejs.org/en/download/
"""