XCSoar / xcsoar-data-repository

XCSoar File Manager Data Repository
https://download.xcsoar.org/repository
8 stars 23 forks source link

CI: Use NodeJS v4.x in the default travis dev env #76

Closed kerel-fs closed 6 years ago

kerel-fs commented 6 years ago

This fixes the build error (const os = require('os'); [...] SyntaxError: Use of const in strict mode.) caused by a highly outdated nodejs-version (v0.10.48) (see also https://stackoverflow.com/a/23151062/1741342).

Updating to an even newer nodejs-version than v4.x should be considered but I've no clue about what is appropriate. @Turbo87 Can you give an advice which nodejs-version whe should target and how to update the dependencies to meet this version?

Turbo87 commented 6 years ago

Since we are only using Node.js for data file conversion and this is not actually being used as a npm package we might as well target the most recent Node.js version or at least the LTS. At this point I would recommend to use Node 8.