Error in your gulpfile

Getting the below error when I try to build for an android device…

Initially when I use ionic cordova run android --device

I get Cordova is not a valid task. If I leave out the cordova reference I get the below…

There is an error in your gulpfile:
SyntaxError: Unexpected token ILLEGAL

    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:20:19)
    at Object.loadGulpfile (C:\Users\alan\AppData\Roaming\nvm\v5.12.0\node_modules\ionic\lib\cli.js:260:7)
    at Object.run (C:\Users\alan\AppData\Roaming\nvm\v5.12.0\node_modules\ionic\lib\cli.js:164:28)
    at Object.<anonymous> (C:\Users\alan\AppData\Roaming\nvm\v5.12.0\node_modules\ionic\bin\ionic:13:10)

please share your ionic info

Got it sorted, mismatch between what was on my machine and that used previously building the app and referenced in the config.