Error: ENOTEMPTY, the directory is not empty in Meteorjs

Error: ENOTEMPTY, directory not empty '/path/disk/folder/.meteor/local/build-garbage-     qb4wp0/programs/ctl/packages'

I already browsed this site for this problem and knew what might be causing this error, and also tried them. I also tried my solutions and I always manage to reset the project.

The problem is that whenever the project is reset, the first time it starts the project, it will run smoothly and no errors will happen, but after some time or changes in my project, for example, checking errors, adding packages or changing some material ... this error will happen.

I have no idea how to fix this problem, and my temporary solution is to always create another meteorite project and place all my project files, as well as install all the packages I use.

No need help.

+4
source share
2 answers

I had this error when running Meteor.js on a vagrant machine. For an additional background, I created a symbolic link for the MongoDB database folder, since I ran into a lock problem (the solution I used for this was described elsewhere ).

After that, my setup was as follows:

/vagrant/.meteor/local/db β†’ / home / vagrant / my_project_db (symbolic link)

This solved the problem that I encountered MongoDB lock, but every time when any source file changed, the meteorite fell with the same exception that you encountered. Deleting files did not help, and the meteorite reset.

Fortunately, this was fixed by changing the folder structure to this:

/vagrant/.meteor/local β†’ /home/vagrant/my_project_local ( )

, , , Meteor.js :

cd /vagrant/.meteor
mv local /home/vagrant/my_project_local
ln -s /home/vagrant/my_project_local local

. , .

+3

, , . , , ( rm )

/media/Meteor/hash/.meteor/local/build-garbage-**

(, build-garbade ). , , , , sudo ? Mac, .

0

Source: https://habr.com/ru/post/1542742/


All Articles