〜/ .npm目录是什么?

我已经安装了全球npmjslint ,它住在这里

 $ ls -la /usr/local/bin/jslint lrwxr-xr-x 1 lust admin 40 Feb 12 15:31 /usr/local/bin/jslint -> ../lib/node_modules/jslint/bin/jslint.js $ ls -la /usr/local/lib/node_modules/jslint/bin total 8 drwxr-xr-x 3 lust staff 102 Apr 16 2012 . drwxr-xr-x 10 lust staff 340 Feb 12 15:31 .. -rwxr-xr-x 1 lust staff 2330 Apr 16 2012 jslint.js $ which jslint /usr/local/bin/jslint $ head -3 /usr/local/bin/jslint #!/usr/bin/env node var linter = require("../lib/linter"); 

所以毫无疑问, jslint实际上是从这个目标运行而不是在这里:

 $ ls -la .npm/jslint/0.1.9/package/bin/ total 8 drwxr-xr-x 3 lust staff 102 Apr 16 2012 . drwxr-xr-x 9 lust staff 306 Feb 12 15:31 .. -rwxr-xr-x 1 lust staff 2330 Apr 16 2012 jslint.js 

似乎有两个包的副本,一个在/usr/local/ ,一个在~/.npm 。 为什么在.npm有一个,我可以安全地删除它?

Solutions Collecting From Web of "〜/ .npm目录是什么?"