最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - nodemon - Internal watch failed: ENOSPC: no space left on device, watch 'homeuserDocumentsgithubsendMail-li

programmeradmin0浏览0评论

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.

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.

Share Improve this question asked Jun 21, 2018 at 10:14 AbdusAbdus 3204 silver badges10 bronze badges 1
  • I have the same problem on Ubuntu 18-04, Node.js v10.6.0, nodemon 1.17.5 – awwright Commented Jul 6, 2018 at 3:15
Add a comment  | 

5 Answers 5

Reset to default 4

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. ;)

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Taken from here.

This is effectively a rights problem, but you don't need to use sudo, just give the user that run nodemon the rights to write to the build directory

an exemple with permissive rights (we use nodemon, so I assume we are in dev)

sudo chmod a+rwX my-application-dir

I installed nodemon locally so, I created an "npm start" script and run it as root like so: sudo npm start

I got this error when trying to run npm start with a start script that looked like this:

"start": "nodemon server.js"

It seems that I had a global installation of nodemon, but not a local version in my project's node_modules. Once I ran npm install nodemon, it installed it locally and worked without requiring root permissions.

nodemon: v1.18.5

OS: ubuntu 18.04

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论