Changed minimal Node.js version


#1

From now on, manageiq hammer & master depend on node.js 8.* or newer.

If you’re seeing this during bin/update, that’s precisely the problem, your node version is too old:

[Webpacker] Compiling assets 🎉
/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-a6003804abae/config/webpack/RailsEnginesPlugin.js:63
          ...request,
          ^^^

SyntaxError: Unexpected token ...
    at NativeCompileCache._moduleCompile (/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-a6003804abae/node_modules/v8-compile-cache/v8-compile-cache.js:226:18)
    at Module._compile (/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-a6003804abae/node_modules/v8-compile-cache/v8-compile-cache.js:172:36)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-a6003804abae/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-a6003804abae/config/webpack/shared.js:16:28)
    at Module._compile (/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-a6003804abae/node_modules/v8-compile-cache/v8-compile-cache.js:178:30)

Any version of node.js newer than 8.0.0 should work, the current 8.11 LTS is recommended, node 10 is not guaranteed to work yet (but should).


If your distribution doesn’t provide recent enough packages for node.js , you can also use nvm, which works similar to rbenv.