cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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)


View Entire Topic
0 Kudos

hi All, I have the same error. Installing the new node.js version would not work as SAP Hat requires a specific Node.js to run.

My node -v = 5.4.1

Any one has a clue to get run the HAT locally.

I went through the setup and the setup was successfully completed.

0 Kudos

Hi tri-minh.cao

I also Faced the same issue...

Try below...worked for me

Install Node Version Manager and then install Node version greater than 7 by using command

nvm install 7.4

Now use the installed Node version by using command

nvm use 7.4

and then try to run SAP HAT Local