我正在使用 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
这是什么?我该如何摆脱它?
最佳答案
mongoose@4.10.4 已经退出并且没有 900mb 的奖金
关于node.js - Mongoose NPM 包很大并且包含日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44224697/