I built my app 6 months ago on ionic2 and was all okay.
My package.json:
{
"dependencies": {
"@angular/common": "^2.4.10",
"@angular/compiler": "^2.4.10",
"@angular/core": "^2.4.10",
"@angular/http": "^2.4.10",
"@angular/platform-browser": "^2.4.10",
"@angular/platform-browser-dynamic": "^2.4.10",
"@angular/router": "^2.0.0-rc.2",
"@ionic/app-scripts": "^1.3.7",
"es6-shim": "^0.35.3",
"ionic-angular": "^2.3.0",
"ionic-native": "^1.3.27",
"ionicons": "3.0.0",
"ng2-simple-page-scroll": "^1.0.2",
"reflect-metadata": "^0.1.10",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.26"
},
"devDependencies": {
"@ionic/cli-plugin-gulp": "1.0.1",
"@ionic/cli-plugin-ionic-angular": "1.3.1",
"del": "2.2.0",
"gulp": "^3.9.1",
"gulp-sass": "^3.1.0",
"gulp-watch": "4.3.5",
"ionic-gulp-browserify-typescript": "2.0.0",
"ionic-gulp-fonts-copy": "^1.0.0",
"ionic-gulp-html-copy": "^1.0.0",
"ionic-gulp-sass-build": "^1.0.0",
"ionic-gulp-scripts-copy": "^2.0.0",
"ionic-gulp-tslint": "^1.0.0",
"run-sequence": "1.1.5",
"tslint-ionic-rules": "^0.0.3"
},
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [
"ios",
{
"platform": "ios",
"version": "",
"locator": "ios"
}
],
"name": "cow",
"description": "cow: An Ionic project"
}
now after I updated my ionic, things don’t seem to work.
I dont really know what is gulp, so when i saw the error prompted, I just do what it says and I also update my gulp to the latest.
I also updated my minimatch to 3.0.4, but everytime i tried to install gulp it still throw me the deprecated error message refering to an older version of minimatch.
now I am not sure what was broken with the app that ionic serve wont run it.
Could anyone here tell me how could i fixed this? I need to open up the old ionic 2 project file to fix something up.
if i run:
sudo npm uninstall --save-dev --save-exact @ionic/cli-plugin-gulp@latest
it returns the following warnings:
npm WARN @ionic/app-scripts@1.3.7 requires a peer of @angular/compiler-cli@* but none was installed.
npm WARN @ionic/app-scripts@1.3.7 requires a peer of @angular/tsc-wrapped@* but none was installed.
npm WARN @ionic/app-scripts@1.3.7 requires a peer of sw-toolbox@* but none was installed.
npm WARN @ionic/app-scripts@1.3.7 requires a peer of typescript@* but none was installed.
npm WARN ionic-angular@2.3.0 requires a peer of @angular/compiler-cli@2.4.8 but none was installed.
npm WARN ionic-angular@2.3.0 requires a peer of @angular/forms@2.4.8 but none was installed.
npm WARN ionic-angular@2.3.0 requires a peer of @angular/platform-server@2.4.8 but none was installed.
npm WARN tslint@3.15.1 requires a peer of typescript@>=1.7.3 but none was installed.
npm WARN cow@ No repository field.
npm WARN cow@ No license field.
removed 21 packages in 5.466s
run “ionic serve” again after that, still the same error persist:
Adriande-MacBook-Pro:cow adrianli$ ionic serve
[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
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-gulp : 1.0.1
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework : ionic-angular 2.3.0
System:
Node : v8.0.0
OS : macOS Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
ios-deploy : 1.8.6
ios-sim : 5.0.8
npm : 5.0.3