Tuesday, September 12, 2017

WebStorm keeps crashing my locally ran server because of Git's index.lock

Leave a Comment
Error: EPERM: operation not permitted, lstat 'C:\ProjectDirectory\.git\index.lock'     at Error (native) 

I'm using WebStorm and everytime I run the local server for testing purposes using npm start, it crashes inevitably sometimes after doing nothing, and sometimes after making a change or so.

I'm using this React boilerplate and the actual author responded to a bug issue I brought up about this saying "Based on the error, it looks like either your editor or your source control system is locking files."

I'm a bit tired restarting the server every time I make a couple changes and would love to fix this.

Full error log

1 Answers

Answers 1

Only IDE have reason to watch .git/ folder. So if something else tries then it's a bug in configuration.

npm start is an alias for npm-run-all --parallel test:watch open:src lint:watch.

Make sure that .git/ is exempted in their configuration.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment