Hello ,
when run ( ionic serve ) this error appears but my app serve normally
[v1] [18:28:44] Cannot load gulp: Error: Error in module: .\gulpfile.js:
[v1] Error: Cannot find module 'gulp-clean-css'
[v1] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
[v1] at Function.Module._load (internal/modules/cjs/loader.js:508:25)
[v1] at Module.require (internal/modules/cjs/loader.js:637:17)
[v1] at require (internal/modules/cjs/helpers.js:22:18)
[v1] at Object.<anonymous> (F:\Ionic\New\sudafax\gulpfile.js:3:16)
[v1] at Module._compile (internal/modules/cjs/loader.js:701:30)
[v1] at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
[v1] at Module.load (internal/modules/cjs/loader.js:600:32)
[v1] at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
[v1] at Function.Module._load (internal/modules/cjs/loader.js:531:3)
Here is the Old Package.json
{
"name": "sudafax",
"version": "0.0.1",
"description": "An Ionic project",
"devDependencies": {
"gulp": "^3.5.6",
"gulp-clean-css": "^3.7.0",
"gulp-rename": "^1.2.0",
"gulp-sass": "^3.1.0"
},
"dependencies": {
"cordova-android": "^6.4.0"
},
"cordova": {
"plugins": {
"cordova-android-play-services-gradle-release": {
"PLAY_SERVICES_VERSION": "15.+"
}
}
}
}
and this is my new package.json
{
"name": "sudafax",
"version": "1.1.3",
"devDependencies": {
"@ionic/lab": "1.0.24",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^4.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"gulp": "^4.0.1"
},
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {}
},
"platforms": [
"android"
]
},
"dependencies": {
"cordova-android": "8.0.0",
"gulp-sass": "^4.0.2"
}
}