[Nodemon] Internal Watch Failed:watch ENOSPC Error resolution

Source: Internet
Author: User

Operating environment: Ubuntu 16.04, Webstorm 2016.1.3, node. js v0.12.5, Nodemon 1.9.2

In the WS-Band terminal input Nodemon Server.js startup project, the following error prompt, the service can run normally, but unable to monitor the file modification.

[Nodemon] Internal Watch Failed:watch ENOSPC

The workaround is to enter the following command at the terminal and rerun Nodemon server.js.

echo fs.inotify.max_user_watches=582222sudoteesudo sysctl-p

Note that executing CTRL + C at the terminal of WS does not end the node process, which causes the port to be consumed at the next service startup failure. The correct way is to end the current session by tapping the Red fork next to the terminal window.

[Nodemon] Internal Watch Failed:watch ENOSPC Error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.