Ionic v2 run on Android problem

When I’m using ionic run android there is no output and it’s nothing happens.

I have tried to make ionic build android and I got this error:

Error happened [TypeError: Path must be a string. Received undefined]
TypeError: Path must be a string. Received undefined
    at assertPath (path.js:8:11)
    at Object.posix.join (path.js:479:5)
    at Object.bundle (/usr/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/v2/build.js:19:32)
    at /usr/lib/node_modules/ionic/lib/ionic/cordova.js:130:22
    at _fulfilled (/usr/lib/node_modules/ionic/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/lib/node_modules/ionic/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/ionic/node_modules/q/q.js:749:13)
    at /usr/lib/node_modules/ionic/node_modules/q/q.js:557:44
    at flush (/usr/lib/node_modules/ionic/node_modules/q/q.js:108:17)
    at doNTCallback0 (node.js:428:9)

Any idea how to fix it?

And there is more some weird problems, I don’t know why but I have to make sudo ionic serve and not just ionic serve… It’s only in Ionic v2.


Hello !
Be aware, there is a ionic2 tag.

Thanks, i edited the tag.