Problems with cordova plugin cordova.plugins.diagnostic

Problems with plugin cordova when installing the plugin it is stopping the application.

well you didn’t provide that much details so I will just provide a wild guess.

Did you install or upgrade cordova.plugins.diagnostic to its version 4?
If so, have you read the CHANGELOG/README and did you had the new mandatory preference in your config.xml?

See “Specifying modules” chapter of the README