0

I'm trying to run my app using Ionic, but when I type the following:

ionic build android

I get the following output:

enter image description here

Any ideas how do I proceed?

Hobert Bush III
  • 282
  • 1
  • 9
Nadiya
  • 1,421
  • 4
  • 19
  • 34

2 Answers2

2

This has nothing to do with ionic.

You need to update to the latest version of node.js and that should take care of the error. See this similar issue on the joi node module.

Brad W
  • 2,540
  • 2
  • 18
  • 28
0

I was able to fix it using:

1) Clear NPM's cache:

sudo npm cache clean -f

2) Install a little helper called 'n'

sudo npm install -g n

3) Install latest stable NodeJS version

sudo n stable

Update nodejs instructions taken from, SyntaxError: Use of const in strict mode

Community
  • 1
  • 1
Nadiya
  • 1,421
  • 4
  • 19
  • 34