I am getting the issue (cordova flashlight plugin installed but warning it is not installed)

Where are you running the code (simulator, device, etc)? Can you share any relevant code, environment info, etc.?