1Open Terminal
2Go to c:/users and run dir /x
3check shorter name of your usernsme you found with dir/x
4//In my case my username is Nandini Jain and I got short id= NANDIN~1
5and run npm config set cache "C:/Users/<shortname-you-found-with-dir/x>/AppData/Roaming/npm-cache" --global
6//I ran the command
7//C:/Users/NANDIN~1/AppData/Roaming/npm-cache" --global
8
9HOPE THIS WILL WORK BECAUSE ITS THE ONLY REASON OF YOUR QUERY.