node-bunyan
node-bunyan copied to clipboard
Remove/replace dependency on MV
npm package MV has not been updated in 9 years, and depends on a deprecated package inflight which leaks memory:
Bunyan should find a replacement for mv.
> npm install --save
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
> npm ls inflight
my-package
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
Workaround: add the following to package.json:
"overrides": {
"mv": "npm:dry-uninstall"
},
which will prevent mv from being installed by using the dummy package dry-uninstall instead.
Mv is an optional module used for "rotating-file" stream type
Interesting workaround! Thanks for sharing.
I also found the same problem: https://github.com/renovatebot/renovate/discussions/29265, any chance you're coming from Renovate too?
Related/duplicate https://github.com/trentm/node-bunyan/issues/667