Hi guys,
my first post here.
When trying to run ionic in ubuntu using the folling command: ionic run android
I am getting the below error:
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
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:16:19)
at Object. (/usr/local/lib/node_modules/hawk/lib/index.js:5:33)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
Block-scoped declarations (let, const, function, class) not yet supported outside strict mode (CLI v1.7.14)
Your system information:
Cordova CLI: 5.4.1
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS
Node Version: v5.5.0
it used to work before but recently ubuntu asked me to update ionic(after which I also had to update nodejs)
The same happens when I run : ionic serve
Help would be appreciated on this
Thanks