what is ~/.npm dir for?

后端 未结 1 1877
花落未央
花落未央 2021-02-02 07:44

I have installed the global npm package jslint and it lives here

$ ls -la /usr/local/bin/jslint
lrwxr-xr-x  1 lust  admin  40 Feb 12 15:31 /usr/loc         


        
相关标签:
1条回答
  • 2021-02-02 07:49

    ~/.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
    
    0 讨论(0)
提交回复
热议问题