I need some helps to solve problems with ionic on my mac. For every command I launch from terminal with ionic, I receive the same error as shown below.
For example even if I give command ionic -v
, I receive this:
$ ionic -v
/usr/local/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: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.<anonymous> (/usr/local/lib/node_modules/ionic/bin/ionic:8:11)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
I have checked the file /usr/local/lib/node_modules/ionic/dist/index.js
, but all is fine. Even there's this parse error, I even tried with uninstall and reinstalled ionic without success. Can someone give me suggestions please?