Error: EPERM: operation not permitted, mkdir 'C:\Users\Diogo' code example
Example 1: ERR! Error: EPERM: operation not permitted, rename
npm cache clean --force
npm install -g npm@latest --force
Try to install your component once again.
Example 2: Error:....... EPERM: operation not permitted, mkdi
Open Terminal
Go to c:/users and run dir /x
check shorter name of your usernsme you found with dir/x
and run npm config set cache "C:/Users/<shortname-you-found-with-dir/x>/AppData/Roaming/npm-cache" --global
HOPE THIS WILL WORK BECAUSE ITS THE ONLY REASON OF YOUR QUERY.