Error with Rails app with webpacker / node added

I have a Rails app that was working fine on CircleCI. I recently added the webpacker gem which uses node and now I’m getting the following error. I assume the error has to do with:

npm ERR! Failed at the uglifyjs-webpack-plugin@0.4.6 postinstall script 'node lib/post_install.js'.
npm ERR! This is most likely a problem with the uglifyjs-webpack-plugin package,

but I’m a novice with node - how can I fix this? Thanks - Here’s the whole error message:

$ npm install
ruby-2.4.1 is not installed - installing.
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/12.04/x86_64/ruby-2.4.1.tar.bz2
Checking requirements for ubuntu.
Requirements installation successful.
ruby-2.4.1 - #configure
ruby-2.4.1 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 28 15.8M   28 4606k    0     0  6303k      0  0:00:02 --:--:--  0:00:02 6303k100 15.8M  100 15.8M    0     0  14.8M      0  0:00:01  0:00:01 --:--:-- 33.4M
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.4.1 - #validate archive
ruby-2.4.1 - #extract
ruby-2.4.1 - #validate binary
ruby-2.4.1 - #setup
ruby-2.4.1 - #gemset created /home/ubuntu/.rvm/gems/ruby-2.4.1@global
ruby-2.4.1 - #importing gemset /home/ubuntu/.rvm/gemsets/global.gems|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-.
ruby-2.4.1 - #generating global wrappers|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/.
ruby-2.4.1 - #gemset created /home/ubuntu/.rvm/gems/ruby-2.4.1
ruby-2.4.1 - #importing gemsetfile /home/ubuntu/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.4.1 - #generating default wrappers|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-.
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No license field.
-|-|-|-|npm WARN engine @rails/webpacker@3.0.2: wanted: {"node":">=6.0.0","yarn":">=0.25.2"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN peerDependencies The peer dependency css-loader@* included from vue-loader will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
-\/\/\|npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-load-config@1.2.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine prettier@1.8.2: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|npm WARN engine babel-loader@7.1.2: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine compression-webpack-plugin@1.0.1: wanted: {"node":">= 4.3 < 5.0.0 || >= 5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine css-loader@0.28.7: wanted: {"node":">=0.12.0 || >=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine extract-text-webpack-plugin@3.0.2: wanted: {"node":">= 4.8 < 5.0.0 || >= 5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-smart-import@0.7.5: wanted: {"node":">=6.0.0","npm":">=4.0.0","yarn":">=0.17.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine style-loader@0.18.2: wanted: {"node":">= 0.12.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine sass-loader@6.0.6: wanted: {"node":">= 4.3 < 5.0.0 || >= 5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-loader@2.0.8: wanted: {"node":">= 4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine webpack@3.8.1: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
\npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
/npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
\npm WARN engine cosmiconfig@2.2.2: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-load-options@1.2.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-load-plugins@2.3.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|/\/\/\npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine camelcase@4.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-load-config@1.2.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine schema-utils@0.3.0: wanted: {"node":">= 4.3 < 5.0.0 || >= 5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine schema-utils@0.3.0: wanted: {"node":">= 4.3 < 5.0.0 || >= 5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
|-\|npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine find-cache-dir@1.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\|npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine pify@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
|npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine schema-utils@0.3.0: wanted: {"node":">= 4.3 < 5.0.0 || >= 5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss@5.2.18: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/\/-|/npm WARN engine cosmiconfig@2.2.2: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-load-plugins@2.3.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-load-options@1.2.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/npm WARN peerDependencies The peer dependency caniuse-lite@^1.0.30000697 included from postcss-cssnext will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
\|-|-\npm WARN engine make-dir@1.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine pkg-dir@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
|-npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
|/\/\npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
|-|/-|/\/\npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-image-set-polyfill@0.3.5: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-nesting@4.2.1: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss-pseudo-class-any-link@4.0.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|/-|-\|npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
-\npm WARN engine pify@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
|/-\/\npm WARN engine find-up@2.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-\|/-\/-|-\/-|/\/-\/-|-\/\|-\|-\/\|-|/\/-|/\|-npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\npm WARN engine rgb-hex@2.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\/-|/-|/\|/-\/\npm WARN engine locate-path@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-|/\/-\|/-|/\|-|/\|-\/-\|-\|/\|-|/-\|-\|/\|-\|-|/\|/\|/-\/-|npm WARN engine path-exists@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine p-locate@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/npm WARN engine normalize-url@1.9.1: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|/\/npm WARN engine esprima@4.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|/\|/\|-npm WARN engine vendors@1.0.1: wanted: {"node":">=0.11.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
|/\npm WARN engine postcss@5.2.18: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-|/-|/-|-\|/\/-|-\/-|-\/-|-\|-|/npm WARN engine p-limit@1.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\|-|/\/\|-|/\|-|/\|/\|-\|/\/\|-|-|/\|-|/\|/-|-|-\/\/-\/\/npm WARN engine esprima@4.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\|-|-\/\|-\-|-\/-|/\/-|/\/-\|/-\/\/-|/\/-|-\|/\|-\/-npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|-\/\/-|-\/-\|-\/-|-\|/-\/\/-|npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/-\|-\/\|-|/\/-|-\/-|/-|/-|/\npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-|-\|-\/\|-|/\/\|/-|/\/-\-\|npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\|-|/npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\|/-\npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|-\/\npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-\/\|/\|-|/-|-npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|-\-\/\/npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|-\npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
--\/\/-|\|-|--\|-|/--\/-|-\|-\|-|-\/\-|/\|-|\/-|-\|\/\/-\|-\/\/\|-\/\|-|-npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine loader-runner@2.3.0: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine uglifyjs-webpack-plugin@0.4.6: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine enhanced-resolve@3.4.1: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/\|-|-\/-\/-|-\/-\/-|-\/\|-|--|-|/\/-|-|/\/\/\/\|-|/\/\/\|/\/npm WARN engine pbkdf2@3.0.14: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/-npm WARN optional dep failed, continuing fsevents@1.1.3
-|-\/\/-|-npm WARN engine camelcase@4.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine os-locale@2.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine read-pkg-up@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine string-width@2.1.1: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\/-|-|--\/\|/-\/npm WARN engine find-up@2.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine read-pkg@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine strip-ansi@4.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine is-fullwidth-code-point@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine mem@1.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine execa@0.7.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-|-|-\/\/\/-|npm WARN engine locate-path@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|/\npm WARN engine ansi-regex@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/npm WARN engine path-type@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine load-json-file@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine mimic-fn@1.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine hash-base@3.0.4: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|-|-npm WARN engine get-stream@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine p-finally@1.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine npm-run-path@2.0.2: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\|-npm WARN engine p-locate@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine path-exists@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-|/\/-|/\/-|-|npm WARN engine strip-bom@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\/-npm WARN engine path-key@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine p-limit@1.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-\/\npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
-\/\/\|/\/-|-\|-\/\/\/-|/\/-|-|-\/npm WARN engine hash-base@3.0.4: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\|/-|-|-\npm WARN engine hash-base@3.0.4: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\|-|/\|-|-|/--|-|-|-|/\/-|-|-\/-\/\|-|-npm WARN engine request@2.83.0: wanted: {"node":">= 4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\|-\/\|-|/\|-|-|-|/\|-|-\/\|-|/\/-|/\/\/-|/\/-|/-\/\|-\|-|/\|-\/\|-|-\/\|-\/\/-|-\/--|/-\/-|-\/-|/\|/-|/\npm WARN engine hawk@6.0.2: wanted: {"node":">=4.5.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine form-data@2.3.1: wanted: {"node":">= 0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine har-validator@5.0.3: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\/-\-\-\/\|-|/\/-|npm WARN engine har-schema@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/\/\|/\/\/-|/-|
> uglifyjs-webpack-plugin@0.4.6 postinstall /home/ubuntu/rails2/node_modules/@rails/webpacker/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js


module.js:340
    throw err;
          ^
Error: Cannot find module 'sync-exec'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/ubuntu/rails2/node_modules/@rails/webpacker/node_modules/webpack/node_modules/uglifyjs-webpack-plugin/lib/post_install.js:9:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
-\/\/-|-\/\|-|-npm WARN engine cryptiles@3.1.2: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine sntp@2.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine boom@4.3.1: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine hoek@4.2.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|/\/-\|-\|-\/-\|-\/npm WARN engine boom@5.2.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|-\/\/\|-|-\|-|-\|/\|/\/-|-\/\|-|-|-\/\|/\/\/npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
-\/\/\/-|-\/\\/\/--|/-|-|/npm WARN engine css-loader@0.28.7: wanted: {"node":">=0.12.0 || >=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|-|/-|/\npm WARN engine postcss@5.2.18: wanted: {"node":">=0.12"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
/-|-npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\/npm WARN engine postcss@6.0.14: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
\|/-|/--\|-\/\|/-|/-\/--|-\/\npm WARN engine normalize-url@1.9.1: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|/\/npm WARN engine vendors@1.0.1: wanted: {"node":">=0.11.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
\/-|/-|-\/npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.33","npm":"2.13.5"})
/\|--|-|\|-|-|--\npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
\npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-|npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-npm WARN engine chalk@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine supports-color@4.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
|npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
npm WARN engine ansi-styles@3.2.0: wanted: {"node":">=4"} (current: {"node":"0.10.33","npm":"2.13.5"})
-----
> node-sass@4.6.1 install /home/ubuntu/rails2/node_modules/@rails/webpacker/node_modules/node-sass
> node scripts/install.js


/home/ubuntu/rails2/node_modules/@rails/webpacker/node_modules/node-sass/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5
const Hoek = require('hoek');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/ubuntu/rails2/node_modules/@rails/webpacker/node_modules/node-sass/node_modules/request/node_modules/hawk/lib/index.js:5:33)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
\-npm ERR! Linux 3.13.0-129-generic
npm ERR! argv "node" "/home/ubuntu/nvm/v0.10.33/bin/npm" "install"
npm ERR! node v0.10.33
npm ERR! npm  v2.13.5
npm ERR! code ELIFECYCLE

npm ERR! uglifyjs-webpack-plugin@0.4.6 postinstall: `node lib/post_install.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the uglifyjs-webpack-plugin@0.4.6 postinstall script 'node lib/post_install.js'.
npm ERR! This is most likely a problem with the uglifyjs-webpack-plugin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node lib/post_install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls uglifyjs-webpack-plugin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/ubuntu/rails2/npm-debug.log

npm install returned exit code 1

Action failed: npm install