Error: ENOTEMPTY, when running

Hi,

I have a weird issue. I did npm install karma jasmine karma-jasmine --save-dev by accident on my meteor 1.3.1 project and meant to do it on a completely separate one. I removed those packages using npm uninstall --save-dev and verified they are gone from package.json. Unfortunately now when I try to run the program I get this error:

Error: ENOTEMPTY, rmdir '/mnt/c/xampp/htdocs/mm/.meteor/local/.build511179.build/programs/.build663666.server/app/lib

I have manually deleted the folder and it doesn’t help because meteor just regenerates it again! I have also checked, and the folder in question is actually empty, so I don’t know why it says it isn’t.

I am using Windows Subsystem for linux.

Any idea how to fix?

Try manually removing your entire node_modules directory, then running a fresh meteor npm install.

I did that, rebooted into safe mode and deleted the folder in question and it seems to be working now. Thanks for the help @hwillson