Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nodemon - Internal watch failed: ENOSPC: no space left on device, watch '/home/user/Documents/github/sendMail-lib/3808.txt

I am getting an error while running my server file using nodemon. When I type the command nodemon, I get the following output.

[~/D/g/sendMail-lib|3.6.5]
‹master*› »»»» nodemon                                                0|15:35:32
[nodemon] 1.17.5
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node server.js`
[nodemon] Internal watch failed: ENOSPC: no space left on device, watch '/home/abdus/Documents/github/sendMail-lib/3808.txt'
[~/D/g/sendMail-lib|3.6.5]
‹master*› »»»»

Additionally, it creates almost 4000 blank text files(1.txt, 2.txt and so on).

I tried this commands but the problem still persists.

I am on Arch Linux with Node version 10.5.0, NPM version 6.1.0 and Nodemon version 1.17.5.

Just ask me if you need any more information.

like image 310
Abdus Avatar asked Dec 11 '22 06:12

Abdus


1 Answers

I had the same problem. Run nodemon as sudo.

$ sudo nodemon

Or

# nodemon

Most issues I run into with Arch are solved by just running as root. ;)

like image 93
Jeremy Bobbin Avatar answered Apr 30 '23 03:04

Jeremy Bobbin