what is ~/.npm dir for?

~/.npm is a cache that npm uses to avoid re-downloading the same package multiple times. There’s no harm in removing it. You can empty it with the command:

npm cache clean

Leave a Comment