{"id":462,"date":"2026-02-08T09:50:30","date_gmt":"2026-02-08T14:50:30","guid":{"rendered":"https:\/\/www.mariomorocho.com\/system-limit-for-number-of-file-watchers-reached\/"},"modified":"2026-02-08T09:50:30","modified_gmt":"2026-02-08T14:50:30","slug":"system-limit-for-number-of-file-watchers-reached","status":"publish","type":"post","link":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/","title":{"rendered":"System limit for number of file watchers reached"},"content":{"rendered":"\n<p>This error is very common on Linux when working with large projects (which has many dependencies in ( <code>node_modules<\/code>).<\/p>\n\n\n\n<p>The error <code>ENOSPC: System limit for number of file watchers reached<\/code> your operating system has hit the limit on the number of files it can monitor for real-time changes (something tools like Webpack or Vite do constantly).<\/p>\n\n\n\n<p>To fix it, you need to increase the <code>inotify<\/code> limit on your system. Here is how to do it: <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Quick Solution (Temporary until restart)<\/h3>\n\n\n\n<p>Run this command in your terminal to increase the limit immediately:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sysctl fs.inotify.max_user_watches=524288<\/code><\/pre>\n\n\n\n<p>Try starting your app again; it should work now.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Permanent Solution (Persists after restart)<\/h3>\n\n\n\n<p>To avoid having to type the command every time you restart your computer:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add the configuration to the <code>sysctl.conf<\/code> Add the configuration to the (or you can create a file in <code>.d<\/code>):<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"fs.inotify.max_user_watches=524288\" | sudo tee -a \/etc\/sysctl.conf<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Apply the changes:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sysctl -p<\/code><\/pre>\n\n\n\n<p>With this, the file watcher limit will be high enough to handle all the files in your project and its dependencies.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This error is very common on Linux when working with large projects (which has many dependencies in ( node_modules). The error ENOSPC: System limit for &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>System limit for number of file watchers reached - Mario Morocho<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"System limit for number of file watchers reached - Mario Morocho\" \/>\n<meta property=\"og:description\" content=\"This error is very common on Linux when working with large projects (which has many dependencies in ( node_modules). The error ENOSPC: System limit for &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/\" \/>\n<meta property=\"og:site_name\" content=\"Mario Morocho\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-08T14:50:30+00:00\" \/>\n<meta name=\"author\" content=\"Mario Morocho\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mario Morocho\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/\"},\"author\":{\"name\":\"Mario Morocho\",\"@id\":\"https:\/\/www.mariomorocho.com\/#\/schema\/person\/f199db712f8241f07898152f31947142\"},\"headline\":\"System limit for number of file watchers reached\",\"datePublished\":\"2026-02-08T14:50:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/\"},\"wordCount\":155,\"publisher\":{\"@id\":\"https:\/\/www.mariomorocho.com\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/\",\"url\":\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/\",\"name\":\"System limit for number of file watchers reached - Mario Morocho\",\"isPartOf\":{\"@id\":\"https:\/\/www.mariomorocho.com\/#website\"},\"datePublished\":\"2026-02-08T14:50:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/www.mariomorocho.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"System limit for number of file watchers reached\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mariomorocho.com\/#website\",\"url\":\"https:\/\/www.mariomorocho.com\/\",\"name\":\"Mario Morocho\",\"description\":\"Tengo pasi\u00f3n por la tecnolog\u00eda, los proyectos y el liderazgo. Soy el Fundador y CEO de YAKINDU. He liderado varios proyectos tecnol\u00f3gicos para empresas p\u00fablicas y privadas. Creo que el Ecuador puede transformarse digitalmente para ser mas competitivos y entregar valor al mundo.\",\"publisher\":{\"@id\":\"https:\/\/www.mariomorocho.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mariomorocho.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.mariomorocho.com\/#organization\",\"name\":\"Mario Morocho\",\"url\":\"https:\/\/www.mariomorocho.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mariomorocho.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.mariomorocho.com\/wp-content\/uploads\/2022\/01\/logo-claro.png\",\"contentUrl\":\"https:\/\/www.mariomorocho.com\/wp-content\/uploads\/2022\/01\/logo-claro.png\",\"width\":512,\"height\":118,\"caption\":\"Mario Morocho\"},\"image\":{\"@id\":\"https:\/\/www.mariomorocho.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.mariomorocho.com\/#\/schema\/person\/f199db712f8241f07898152f31947142\",\"name\":\"Mario Morocho\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mariomorocho.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d42df3a727ee0d5cecd994fe9e808b429e5e7c165fbbee315bc7852dfa68641?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d42df3a727ee0d5cecd994fe9e808b429e5e7c165fbbee315bc7852dfa68641?s=96&d=mm&r=g\",\"caption\":\"Mario Morocho\"},\"description\":\"Director de Innovaci\u00f3n en YAKINDU.\",\"sameAs\":[\"http:\/\/www.yakindu.ec\"],\"url\":\"https:\/\/www.mariomorocho.com\/en\/author\/administrador\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"System limit for number of file watchers reached - Mario Morocho","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/","og_locale":"en_US","og_type":"article","og_title":"System limit for number of file watchers reached - Mario Morocho","og_description":"This error is very common on Linux when working with large projects (which has many dependencies in ( node_modules). The error ENOSPC: System limit for &hellip;","og_url":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/","og_site_name":"Mario Morocho","article_published_time":"2026-02-08T14:50:30+00:00","author":"Mario Morocho","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mario Morocho","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/#article","isPartOf":{"@id":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/"},"author":{"name":"Mario Morocho","@id":"https:\/\/www.mariomorocho.com\/#\/schema\/person\/f199db712f8241f07898152f31947142"},"headline":"System limit for number of file watchers reached","datePublished":"2026-02-08T14:50:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/"},"wordCount":155,"publisher":{"@id":"https:\/\/www.mariomorocho.com\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/","url":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/","name":"System limit for number of file watchers reached - Mario Morocho","isPartOf":{"@id":"https:\/\/www.mariomorocho.com\/#website"},"datePublished":"2026-02-08T14:50:30+00:00","breadcrumb":{"@id":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mariomorocho.com\/en\/system-limit-for-number-of-file-watchers-reached\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/www.mariomorocho.com\/"},{"@type":"ListItem","position":2,"name":"System limit for number of file watchers reached"}]},{"@type":"WebSite","@id":"https:\/\/www.mariomorocho.com\/#website","url":"https:\/\/www.mariomorocho.com\/","name":"Mario Morocho","description":"Tengo pasi\u00f3n por la tecnolog\u00eda, los proyectos y el liderazgo. Soy el Fundador y CEO de YAKINDU. He liderado varios proyectos tecnol\u00f3gicos para empresas p\u00fablicas y privadas. Creo que el Ecuador puede transformarse digitalmente para ser mas competitivos y entregar valor al mundo.","publisher":{"@id":"https:\/\/www.mariomorocho.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mariomorocho.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mariomorocho.com\/#organization","name":"Mario Morocho","url":"https:\/\/www.mariomorocho.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mariomorocho.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.mariomorocho.com\/wp-content\/uploads\/2022\/01\/logo-claro.png","contentUrl":"https:\/\/www.mariomorocho.com\/wp-content\/uploads\/2022\/01\/logo-claro.png","width":512,"height":118,"caption":"Mario Morocho"},"image":{"@id":"https:\/\/www.mariomorocho.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.mariomorocho.com\/#\/schema\/person\/f199db712f8241f07898152f31947142","name":"Mario Morocho","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mariomorocho.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d42df3a727ee0d5cecd994fe9e808b429e5e7c165fbbee315bc7852dfa68641?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d42df3a727ee0d5cecd994fe9e808b429e5e7c165fbbee315bc7852dfa68641?s=96&d=mm&r=g","caption":"Mario Morocho"},"description":"Director de Innovaci\u00f3n en YAKINDU.","sameAs":["http:\/\/www.yakindu.ec"],"url":"https:\/\/www.mariomorocho.com\/en\/author\/administrador\/"}]}},"_links":{"self":[{"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":0,"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mariomorocho.com\/en\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}