Wednesday 24 May 2017

Syntax Error: unexpected token ionic error

I tried various method for installing ionic, but after installation also when i type "ionic --version" it throws an error something like this :

root@amexspc-Gateway-NE46Rs:~# ionic -v
/usr/lib/node_modules/ionic/dist/index.js:24
    const [xcode, iosDeploy, iosSim,] = yield Promise.all([
          ^

SyntaxError: Unexpected token [
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416: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> (/usr/lib/node_modules/ionic/bin/ionic:8:13)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

This is the error i'm getting, i even tried reinstalling everything from jdk8 to npm, node

But still this error persist Can anybody tell me the solution for this



via raviloop

No comments:

Post a Comment