I have tried creating a brand new app, removing ionic and cordova, updating them, removing the plugins and whenever I run the ionic run android command I get something like this:
$ ionic run android
• You're trying to build for android but don't have the platform installed yet.
∆ Installing android for you.
Installing cordova-plugin-device
Installing cordova-plugin-console
Installing cordova-plugin-whitelist
Installing cordova-plugin-splashscreen
Installing cordova-plugin-statusbar
Installing ionic-plugin-keyboard
Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "cordova plugin add --save cordova-plugin-splashscreen"
C:\Users\SCL\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\node_modules\configstore\index.js: 69
throw err;
^
Error: EPERM: operation not permitted, rename 'C:\Users\SCL\.config\configstore\insight-cordova.json.1857746170' -> 'C:\Users\SCL\.config\configstore\insight-cordova.json'
at Error (native)
at Object.fs.renameSync (fs.js:681:18)
at Function.writeFileSync [as sync] (C:\Users\SCL\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\node_modules\configstore\node_modules\write-file-atomic\index.js:81:8)
at Object.create.all.set (C:\Users\SCL\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\node_modules\configstore\index.js:62:21)
at Object.Configstore (C:\Users\SCL\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\node_modules\configstore\index.js:27:11)
at new Insight (C:\Users\SCL\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\lib\index.js:38:34)
at Object.<anonymous> (C:\Users\SCL\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:37:15)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
