Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

use @npmcli/move-file instead of fs.rename #176

Closed
wants to merge 1 commit into from
Closed

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Nov 5, 2020

switch to using @npmcli/move-file instead of fs.rename, which attempts fs.rename first but if an EXDEV error occurs falls back to a move (copy followed by unlink). this is a regression from npm 6.

References

Fixes npm/cli#606
Fixes npm/cli#2031

@isaacs isaacs closed this in a3ee478 Nov 6, 2020
@wraithgar wraithgar deleted the nlf/safer-rename branch April 22, 2021 17:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Updating npm as instructed by npm fails [BUG] EXDEV: cross-device link not permitted, rename
2 participants