@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.
- package/lib/arborist/reify.js +1 -1
- package/package.json +1 -1
package/lib/arborist/reify.js
CHANGED
|
@@ -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
|