Software Development Timesaver #3
26 Jun 2017If you’re on Windows computer and using Atom, you might have encountered this error in your terminal, when running gulp watch
:
Error: EPERM: operation not permitted, unlink 'C:\user\equalpasta\somepath\project\build'
A Google search reveals that variations of this error are a common problem.
Why does this happen? How to fix it? One reason can be the Atom editor. Turns out having the build folder expanded in Atom can cause this. It seems like Atom locks the folder if expanded in the project view, when running gulp watch
.
Minimize the build folder in Atom, and re-run ‘gulp watch’.
This solved the issue for me.