Skip to content

Fix EPERM error on Windows on rename#104

Closed
manuelcabral wants to merge 1 commit intobrowserify:masterfrom
digisfera:master
Closed

Fix EPERM error on Windows on rename#104
manuelcabral wants to merge 1 commit intobrowserify:masterfrom
digisfera:master

Conversation

@manuelcabral
Copy link
Copy Markdown

Fixes #83 by writing to output file on callback

@j201
Copy link
Copy Markdown

j201 commented Nov 5, 2014

So what's the problem causing #83? I've been experiencing the bug and I'm anxious to get around it, so I'd like to take a look or help out with it.

@manuelcabral
Copy link
Copy Markdown
Author

The fs.rename() seems to fail because the temporary file is still being used. Perhaps the file is still opened by browserify, but I couldn't find it.

Although this fix (writing directly to the output file) seems to work on Windows it may cause some problems, such as triggering a watch before the file has been completely written. Renaming would definitely be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: EPERM, rename '...something...'

2 participants