Skip to content
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
izuzak:fix-eperm
Mar 12, 2013
Merged

Fix EPERM error on Windows with A/V software#28
dpup merged 1 commit intoMedium:masterfrom
izuzak:fix-eperm

Conversation

@izuzak
Copy link
Copy Markdown
Contributor

@izuzak izuzak commented Feb 23, 2013

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

@bc-prasadini
Copy link
Copy Markdown

Hi :) Waiting for this fix! Please merge soon. Thanks a lot !

install.js Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider logging a specific exception if the 10s has expired.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, should have added a log message there. Fixed now. Thanks!

@dpup
Copy link
Copy Markdown

dpup commented Mar 11, 2013

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.
@dpup
Copy link
Copy Markdown

dpup commented Mar 12, 2013

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
@dpup dpup merged commit a0728d6 into Medium:master Mar 12, 2013
@danielkcz
Copy link
Copy Markdown

Try running npm cache clean, that worked for me ! http://blogs.msdn.com/b/matt-harrington/archive/2012/02/23/how-to-fix-node-js-npm-permission-problems.aspx

@amit-srivastava-007
Copy link
Copy Markdown

Manual Rename can work?

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.

npm install fails on Windows with "EPERM, operation not permitted" error during rename

5 participants