Skip to content

Issues with Node v8 compatibility in new release #158

@ethan-arreya

Description

@ethan-arreya

Upon installing [email protected] into our Node 8 project we were getting errors with running Grunt. The v8flags dependency changed from ~3.2.0 to 4.0.

0.613 /usr/local/lib/node_modules/grunt-cli/node_modules/v8flags/index.js:84
0.613   var flags = Array.from(process.allowedNodeEnvironmentFlags);
0.613                     ^
0.613 
0.613 TypeError: Cannot convert undefined or null to object
0.613     at Function.from (native)
0.613     at getFlags (/usr/local/lib/node_modules/grunt-cli/node_modules/v8flags/index.js:84:21)
0.613     at /usr/local/lib/node_modules/grunt-cli/node_modules/v8flags/index.js:142:5
0.613     at /usr/local/lib/node_module...

They invoke process.allowedNodeEnvironmentFlags which wasn't introduced into Node until v10.10. If we attempt to set NODE_OPTIONS to circumvent the errors, the object on the process variable wouldn't exist .

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