[NPMCLI-95] Help users with outdated Node versions Created: 01/Feb/17  Updated: 09/Feb/17  Resolved: 06/Feb/17

Status: Closed
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Neutral
Reporter: Robert Kowalski Assignee: Robert Kowalski
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Sprint: Basel 82
Story Points: 1

 Description   

Provide a nice warning with instructions how to continue to users with outdated Node versions.

The warning can be required in our main entry point.

Pseudocode:

require('./node-version-warning.js')

// node-version-warning.js
if (/.6/.test(process.version)) { throw new Error('please download Node 6 from example.org')}

Real world example:
https://github.com/apache/couchdb-fauxton/blob/master/version-check.js



 Comments   
Comment by Christopher Zimmermann [ 01/Feb/17 ]

Also consider adding required node version via:
https://docs.npmjs.com/files/package.json#engines

Generated at Mon Feb 12 04:46:28 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.