Skip to Content
0
Oct 12, 2018 at 04:44 AM

SAP HAT (Hybrid Application Toolkit) Error after successful setup while running HAT (run.cmd)

276 Views Last edit May 21, 2020 at 04:40 PM 3 rev

Prerequisites:

- Configured SAP HAT LOCAL ADD On Successfully

Software's installed:

  1. JDK 1.8.0_144
  2. Node.js v5.4.1 and npm v3.3.12
  3. Apache Cordova 6.5
  4. Git Client
  5. Apache Ant 1.8 or later
  6. Install both Android 5.1.1 (API Level 22), Android SDK 6.0 (API Level 23)
  7. Android AVD using (API Level 19)
  8. Optional Google USB driver
  9. KapselSdk


Problem:

- Error while running SAP HAT (Hybrid Application Toolkit)

- When clicked on run.cmd in SAP_HAT_LOCAL folder gives below error

or

Open cmd prompt in SAP_HAT_LOCAL folder and execute run.cmd

C:\SAP_HAT_local>run.cmd


C:\SAP_HAT_local>node scripts/server.js
C:\SAP_HAT_local\node_modules\debug\src\node.js:132
        let val = process.env[key];
        ^^^


SyntaxError: Block-scoped declarations (let, const, function, class) not yet sup
ported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:404:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (C:\SAP_HAT_local\node_modules\debug\src\index.js:9:19
)
    at Module._compile (module.js:397:26)
    at Object.Module._extensions..js (module.js:404:10)


Attachments