Cannot read property 'serve:before' of undefined (CLI v2.2.3)


#1

im trying to serve a Moodle mobile app, this is the repo:

this is the log when i try - ionic serve, after clone the project and do - npm run setup :


TypeError: Cannot read property 'serve:before' of undefined
    at Object.runWithGulp (/usr/local/lib/node_modules/ionic/lib/cli.js:237:17)
    at Object.runr (/usr/local/lib/node_modules/ionic/lib/cli.js:194:18)
    at /usr/local/lib/node_modules/ionic/lib/cli.js:54:9
    at _fulfilled (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/ionic/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/ionic/node_modules/q/q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)


Cannot read property 'serve:before' of undefined (CLI v2.2.3)

Your system information:

Cordova CLI: 8.0.0 
Ionic Framework Version: 3.9.2
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 3.1.9
ios-deploy version: Not installed
ios-sim version: 6.1.2 
OS: macOS
Node Version: v6.0.0
Xcode version: Xcode 10.1 Build version 10B61