1

When I run the ionic build android command, I get the following error:

WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Uh oh! Looks like you're missing a module in your gulpfile:
Cannot find module 'gulp'

Do you need to run `npm install`?

I have already tried running this command:

npm install --save-dev gulp

But I am still getting the same error. Am I missing something here?

Dexter
  • 2,462
  • 4
  • 24
  • 28
user2897282
  • 81
  • 1
  • 5
  • 14

2 Answers2

0

You need to install Gulp globally using the following command: npm install --global gulp-cli, as described in the Gulp documentation.

Dexter
  • 2,462
  • 4
  • 24
  • 28
  • Now i am getting `WARN: ionic.project has been renamed to ionic.config.json, please rename it. Uh oh! Looks like you're missing a module in your gulpfile: Cannot find module 'bower'` Do you need to run npm install? I already did `npm install -g bower` but gives the same error – user2897282 Aug 27 '16 at 11:45
  • What happens if you just type `bower` in a terminal? – Dexter Aug 27 '16 at 12:21
  • You could try also installing in locally using `npm install bower`, but I don't really see what is causing this issue for you. – Dexter Aug 28 '16 at 18:01
  • Have you seen this post related to this new error you're seeing? http://stackoverflow.com/questions/37078620/ionic-1-app-does-not-build-ios-ionic-project-has-been-renamed-to-ionic-config – Duderino9000 Aug 29 '16 at 03:52
0

Please try to run the following commands:

npm install -g gulp
npm install 
Levarne Sobotker
  • 1,140
  • 12
  • 12