Hi,
I’ve the same problem after upgrading ionic/cli-utils from 1.3 to 1.4.0
If I launch “ionic serve” or “ionic cordova build ios” I obtain same error of rivetly:
[ERROR] Gulpfile not found: ./gulpfile.js
You can set the gulpFile attribute in ionic.config.json for custom Gulpfile locations, otherwise the default
Ionic Gulpfile can be downloaded from https://github.com/ionic-team/ionic-app-base/blob/master/gulpfile.js
Or, if you no longer use gulp, you can remove the CLI Gulp Plugin:
npm uninstall --save-dev --save-exact @ionic/cli-plugin-gulp@latest
My ionic info:
global packages:
@ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Gulp CLI : CLI version 1.3.0 Local version 3.9.1
Ionic CLI : 3.4.0
local packages:
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-gulp : 1.0.1
@ionic/cli-plugin-ionic1 : 2.0.0
Cordova Platforms : android 5.1.1 browser 4.1.0 ios 4.4.0
Ionic Framework : ionic1 1.3.1
System:
Node : v6.10.3
OS : OS X El Capitan
Xcode : Xcode 7.3.1 Build version 7D1014
ios-deploy : 1.9.1
ios-sim : 5.0.13
npm : 3.10.10
I’ve tried the suggestions of rivetly but no success.
Thanks in advance
Do you use gulp in your project?
When and why did you install @ionic/cli-plugin-gulp?
If you don’t use it, did you try the command the error message told you to?
[ERROR] Gulpfile not found: ./gulpfile.js
You can set the gulpFile attribute in ionic.config.json for custom Gulpfile locations, otherwise the default
Ionic Gulpfile can be downloaded from https://github.com/ionic-team/ionic-app-base/blob/master/gulpfile.js
Or, if you no longer use gulp, you can remove the CLI Gulp Plugin:
npm uninstall --save-dev --save-exact @ionic/cli-plugin-gulp@latest
I’ve always used gulp in my project since I started working on it, without problems until yesterday
I encountered into the same problem, and after many unsuccessful tries, I added one line to node_modules/@ionic/cli-plugin-gulp/index.js:
if (e.code !== 'MODULE_NOT_FOUND') {
throw e;
}
console.dir(e); // ADD THIS
throw new cli_utils_1.FatalException(`Gulpfile not found: ${chalk.bold(cli_utils_1.prettyPath(gulpFilePath))}\n` +
`You can set the ${chalk.bold('gulpFile')} attribute in ${chalk.bold(cli_utils_1.PROJECT_FILE)} for custom Gulpfile locations, otherwise the default Ionic Gulpfile can be downloaded from ${chalk.bold('https://github.com/ionic-team/ionic-app-base/blob/master/gulpfile.js')}\n\n` +
`Or, if you no longer use gulp, you can remove the CLI Gulp Plugin:\n\n` +
` ${chalk.green(gulpPluginUninstallArgs.join(' '))}`);
then run ionic serve again, the console can print out why it fails, we could try to resolve them now.
In my case, it’s because of some missing gulp related packages (gulp-bower gulp-minify-css gulp-rename gulp-concat)
We should consider more accuarate error output instead of misleading Gulpfile not found for every error.
That is a workaround - you should find out what library is requiring replace and didn’t add it to its package.json file - otherwise you will have the exact same error again every time you check out the project on a new computer.