The other day, I was getting ready to work on my personal project using the mean.io framework (which I recommend for you MEAN developers). When I had Terminal pointed to my project directory, and entered
nodemon and I got an error referencing a .DS_Store file in my project’s directory. I remember thinking I had seen this error before and I never did fix the problem, so I deleted that project and worked from scratch. This time, I was not going to do that. I didn’t even know what the hell what a .DS_Store file was except it is a hidden file.
I fixed the problem by just deleting the file because it may have been corrupted or something else. Finder automatically places a .DS_Store file into every folder you have opened because they hold view options (positions of icons, size of the window, window backgrounds, etc.). So, I went to the directory where the .DS_Store was, entered
sudo ls (lists hidden files as well as folders and visible files), confirmed that .DS_Store was there, entered
rm -f .DS_Store (force remove .DS_Store) and pressed entered. If the remove was successful, you won’t see a confirmation message. I confirmed the removal of the file with
sudo ls and saw it was gone!
I went back to my project and entered nodemon. It worked like it should – nice.