Skip to content

Older node version is breaking nightly builds #225

@ofTheo

Description

@ofTheo

I think this might be the cause nightly is breaking.
https://github.com/openframeworks/projectGenerator/blob/master/frontend/package.json#L15

"engines": {
    "node": ">=0.10.0"
  },

Even after updating node to 6.1 on the CI server it reverts back to an older version a few days later.

Creating projectGenerator
npm WARN engine punycode@2.1.1: wanted: {"node":">=6"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN engine har-validator@5.1.3: wanted: {"node":">=6"} (current: {"node":"4.8.7","npm":"2.15.11"})
npm WARN engine n-readlines@1.0.0: wanted: {"node":">=6.x.x"} (current: {"node":"4.8.7","npm":"2.15.11"})
module.js:327
    throw err;

Last time I fixed it by doing:

sudo npm install -g n
sudo n 6.11.0

But I am seeing the errors above again, making me think one of the scripts is reverting node somehow.

Maybe when this is run its picking up the version from package.json?
https://github.com/openframeworks/openFrameworks/blob/7d4797f755f33f792951ea542773c8848e9d1f7c/scripts/dev/create_package.sh#L438

Seeing as the node packages need >= 6 should we change: package.json to set 6.1 as the minimum?
https://github.com/openframeworks/projectGenerator/blob/master/frontend/package.json#L15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions