From 9e6dd57a5cdbaf21b7e138a961cec2b999111fd9 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Wed, 9 Aug 2017 15:18:16 +0200 Subject: [PATCH] Help users using old node versions to upgrade --- CHANGELOG.md | 3 +++ build/app.js | 2 +- lib/app.coffee | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a56e1aa..c8d53a0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/build/app.js b/build/app.js index 54825bc2..9fb9dd64 100644 --- a/build/app.js +++ b/build/app.js @@ -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'); diff --git a/lib/app.coffee b/lib/app.coffee index 37088315..ff6a689e 100644 --- a/lib/app.coffee +++ b/lib/app.coffee @@ -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/ + """