Search code examples
ionic-frameworkgulpcommand-line-interface

Gulpfile not found: ./gulpfile.js - even though it exists in Ionic 1


I recently updated Ionic CLI. I am trying to build an older application (v1 - created long ago) in this new cli version. But after installing gulp and running ionic cordova build android it shows following error. But gulp file exists in that location.

Error image

I tried uninstalling it but same issue. This is my Ionic info - I am working on Ubuntu 16.04.

Ionic info


Solution

  • If you are trying to build Ionic 1 project, Then you should use cordova run android This will run perfectly. and for release cordova run android --release

    ionic cordova build android will work on Ionic 3 CLI.