This repository was archived by the owner on Jul 24, 2019. It is now read-only.
Fix EPERM error on Windows with A/V software#28
Merged
dpup merged 1 commit intoMedium:masterfrom Mar 12, 2013
izuzak:fix-eperm
Merged
Fix EPERM error on Windows with A/V software#28dpup merged 1 commit intoMedium:masterfrom izuzak:fix-eperm
dpup merged 1 commit intoMedium:masterfrom
izuzak:fix-eperm
Conversation
|
Hi :) Waiting for this fix! Please merge soon. Thanks a lot ! |
install.js
Outdated
There was a problem hiding this comment.
Consider logging a specific exception if the 10s has expired.
Contributor
Author
There was a problem hiding this comment.
Yep, should have added a log message there. Fixed now. Thanks!
|
Sorry been away for a couple of weeks. |
On Windows machines with anti-virus software, renaming immediately after extracting fails due to an EPERM error. This is caused by the A/V locking up files while it is scanning them, thus disabling renaming. The solution is to re-try renaming until the EPERM error stops occurring, which happens after the A/V stops scanning the files.
|
Thanks, merging. Need to look at a node 0.10 problem, so will probably publish a version to NPM later today. |
dpup
pushed a commit
that referenced
this pull request
Mar 12, 2013
Fix EPERM error on Windows with A/V software
|
Try running |
|
Manual Rename can work? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows machines with anti-virus software, renaming immediately after extracting fails due to an EPERM error. This is caused by the A/V locking up files while it is scanning them, thus disabling renaming. The solution is to re-try renaming until the EPERM error stops occurring, which happens after the A/V stops scanning the files, as described here: isaacs/npm@beeb7fd
Fixes #19