【发布时间】:2017-05-30 09:30:46
【问题描述】:
我正在使用 mongoose 连接到 mongo 数据库。
我想了解为什么node_modules/mongoose 超过 1gb...
当我检查里面的内容时,我得到了 3 个巨大的文件夹(31000、31001、31002),其中似乎是日志,即使重新安装也是如此。
$ rm -Rf node_modules/mongoose
$ npm i mongoose
$ ls -al node_modules/mongoose/tools/31000/journal
total 614400
drwxr-xr-x 5 florian staff 170 May 28 08:48 .
drwxr-xr-x 27 florian staff 918 May 28 08:48 ..
-rw-r--r-- 1 florian staff 104857600 May 24 21:27 WiredTigerLog.0000000001
-rw-r--r-- 1 florian staff 104857600 May 24 08:06 WiredTigerPreplog.0000000001
-rw-r--r-- 1 florian staff 104857600 May 24 08:06 WiredTigerPreplog.0000000002
这是什么?我该如何摆脱它?
【问题讨论】: