Existing Ionic 1 - cordova-plugin-device Error

I have an existing Ionic v1 app that I can build on an older MAC. From ionic info

Your system information:

Cordova CLI: 6.1.1
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.6
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v5.5.0
Xcode version: Xcode 7.2.1 Build version 7C1002

I have a new MAC and want to build against the latest Xcode and Android versions. The new Mac is running High Sierra. But when I type ionic info on the new MAC I get

Cordova CLI: 6.1.1
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.9.2
ios-sim version: 6.1.2
OS: Mac OS X El Capitan
Node Version: v5.5.0
Xcode version: Xcode 9.2 Build version 9C40b

Not sure why it is still showing El Capitan?

Also when I go to build it I get the following errors:

node scripts/cordova.folders && ionic state reset && node scripts/clean && npm run webpack:production && ionic prepare --release && scripts/docgen

Removed platforms and plugins
Attempting to restore your Ionic application from package.json
Restoring Platforms
cordova platform add ios
cordova platform add android
Restore platforms is complete
Restoring Plugins
cordova plugin add cordova-plugin-device@1.1.1
/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/state.js:543
** throw ‘Error executing "’ + pluginCommand + ‘":\n’ + output;**
** ^**
Error executing “cordova plugin add cordova-plugin-device@1.1.1”:

Fetching plugin “cordova-plugin-device@1.1.1” via npm

Installing “cordova-plugin-device” for android
Android Studio project detected
Installing “cordova-plugin-device” for ios
Error: cordovaProject.projectConfig.getFileResources is not a function

Any ideas as to what is going on?

Thanks