mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-08 20:04:14 +00:00
Merge pull request #614 from resin-io/603-node-upgrade-help
Help users using old node versions to upgrade
This commit is contained in:
commit
bad4493867
@ -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
|
||||
|
||||
|
@ -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');
|
||||
|
@ -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/
|
||||
|
||||
"""
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user