I had a Local account using a Microsoft Account Profile by pointing to the existing profile with Desktop, OneDrive assets in place Because the different account types default to Local or Roaming respectively [I think] things got ugly eventually & I had issues with Python, NPM, ReactJs etc
I Used netplwiz to set the Local folder to my c:\users\username Run sysdm.cpl then click User Profile to set your profile type to Roaming or Local
Clean up any Group Policy irregularity