nvm use does not switch node versions

I had to delete the folder located at C:\Program Files\nodejs: And then run nvm use {version} again to repopulate this folder with the correct node version. I suspect that nvm is having trouble deleting this folder due to permission issues.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)