Failure to install packages (Mac)

I’ve encountered issues with installing packages on my mac. I had this package installed before but later it caused some issue and I uninstall and reinstall the entire atom ide. Yet it is having trouble every time I try to install.

The picture above is the error message. I assume there are some crucial folders being deleted with the first uninstallation of my atom.

Please help!

I tried APM and it just gets stuck for a very long time.
I am using a proxy (VPN).
My system version is macOS Catalina 10.15.6.