If you are trying to install Onedrive on a Windows 10 computer, there is a high chance of receiving this error message – A newer version of OneDrive is installed; You need to uninstall it first before installing this version. What does this mean and how do we fix this problem? In Windows 10, OneDrive is already installed as a pre-installed app. Microsoft has included the Store edition of OneDrive in Windows 10 for more comfortable usability. However, if you are facing some problems while synchronizing OneDrive, and you are trying to reinstall the OneDrive app on your Windows
Source