Adding plugins cli error

Hi,

I am working in an ionic v1 app that needed an update. I have moved on since to V3 but I’m having issues with the V1 project trying to set it up from a repo.

I need to re-install the plugins but I get errors … (npm install completed)
It seems like everything is installed when I run cordova plugin add (but there is an error), cordova prepare stops at start, I am not sure what part of the code didn’t excecute…

$ ionic cordova prepare

cordova prepare
Error: cordovaProject.projectConfig.getFileResources is not a function
[ERROR] An error occurred while running cordova prepare (exit code 1).

$ cordova prepare

Running command: /url/010_add_platform_class.js /Url/app
add to body class: platform-android
add to body class: platform-ios

the code above ( cordova prepare without ionic) doesn’t give any errors.

$ ionic cordova plugin add cordova-plugin-device --save

cordova plugin add cordova-plugin-device --save
:heavy_multiplication_x: Running command - failed!
[ERROR] An error occurred while running cordova plugin add cordova-plugin-device --save (exit code 1):
Fetching plugin “cordova-plugin-device” via npm
Installing “cordova-plugin-device” for android
Installing “cordova-plugin-device” for ios
Saved plugin info for “cordova-plugin-device” to config.xml
Error: cordovaProject.projectConfig.getFileResources is not a function

Dependencies & plugins (package.json)

"dependencies": {
        "cordova-android": "^6.3.0",
        "cordova-ios": "^4.4.0",
        "gulp-concat": "^2.2.0",
        "gulp-minify-css": "^0.3.0",
        "gulp-rename": "^1.2.0",
        "gulp-sass": "^2.0.4"
    },
    "devDependencies": {
        "@ionic/cli-plugin-cordova": "1.6.2",
        "@ionic/cli-plugin-gulp": "1.1.1",
        "@ionic/cli-plugin-ionic1": "2.1.1",
        "bower": "^1.3.3",
        "cca": "^0.8.1",
        "gulp": "^3.9.1",
        "gulp-util": "^2.2.14",
        "ionic": "3.12.0",
        "shelljs": "^0.3.0"
    },
    "cordovaPlugins": [
        "cordova-plugin-device",
        "cordova-plugin-console",
        "cordova-plugin-whitelist",
        "cordova-plugin-splashscreen",
        "cordova-plugin-statusbar",
        "ionic-plugin-keyboard",
        "cordova-plugin-apprate"
    ]

ionic info:

cli packages: (/Users/pieterjan/test/fpapp/app-foodpaint/node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 5.4.1 
    Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

    Cordova Platforms : android 6.3.0, ios 4.5.1
    Ionic Framework   : ionic1 1.3.1

System:

    ios-deploy : 1.9.1 
    Node       : v6.11.2
    npm        : 2.15.12 
    OS         : macOS Sierra
    Xcode      : Xcode 9.0 Build version 9A235 

Misc:

    backend : legacy