@npmcli/arborist 9.1.8 → 9.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -510,7 +510,7 @@ module.exports = cls => class Reifier extends cls {
510
510
  if (er.code === 'ENOENT') {
511
511
  return didMkdirp ? null : mkdir(dirname(to), { recursive: true }).then(() =>
512
512
  this[_renamePath](from, to, true))
513
- } else if (er.code === 'EEXIST') {
513
+ } else if (er.code === 'EEXIST' || er.code === 'ENOTEMPTY') {
514
514
  return rm(to, { recursive: true, force: true }).then(() => moveFile(from, to))
515
515
  } else {
516
516
  throw er
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/arborist",
3
- "version": "9.1.8",
3
+ "version": "9.1.9",
4
4
  "description": "Manage node_modules trees",
5
5
  "dependencies": {
6
6
  "@isaacs/string-locale-compare": "^1.1.0",