title: Node error: "SyntaxError: Unexpected token {" at "const {join, basename} = require('path')"
body: <p>I need to work with an app based on ionic framework v1 and Cordova 7.1, but there is the following problem with Node when running Cordova:</p>
  
  <pre><code>$ cordova -v
  /node_modules/cordova/node_modules/npm-normalize-package-bin/index.js:3
  const {join, basename} = require('path')
        ^
  
  SyntaxError: Unexpected token {
      at exports.runInThisContext (vm.js:53:16)
      at Module._compile (module.js:387:25)
      at Object.Module._extensions..js (module.js:422:10)
      at Module.load (module.js:357:32)
      at Function.Module._load (module.js:314:12)
      at Module.require (module.js:367:17)
      at require (internal/module.js:20:19)
      at Object.&lt;anonymous&gt; (node_modules/cordova/node_modules/read-package-json/read-json.js:14:27)
      at Module._compile (module.js:413:34)
      at Object.Module._extensions..js (module.js:422:10)
  </code></pre>
  
  <p>I installed Cordova with this command:</p>
  
  <pre><code>npm install -g cordova@7.1.0
  </code></pre>
  
  <p>The project requires the following versions which are installed on my machine:</p>
  
  <pre><code>node -v
  v5.12.0
  
  npm -v
  3.8.6
  
  ionic -v
  1.7.15
  
  grunt --version
  grunt-cli v0.1.13
  grunt v0.4.5
  
  bower -v
  1.8.4
  
  plugman -v
  2.0.0
  </code></pre>
  
  <p>Does anyone have a clue where the problem is? I'm glad for any help.</p>