<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Error: EMFILE: too many open files, while deploying react widget.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120970998" />
  <subtitle>Error: EMFILE: too many open files, while deploying react widget.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120970998</id>
  <updated>2026-04-06T10:14:11Z</updated>
  <dc:date>2026-04-06T10:14:11Z</dc:date>
  <entry>
    <title>RE: RE: Error: EMFILE: too many open files, while deploying react widget.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123548955" />
    <author>
      <name>Arslan Ghaffar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123548955</id>
    <updated>2025-08-19T16:00:04Z</updated>
    <published>2025-08-19T07:01:56Z</published>
    <summary type="html">&lt;p&gt;Hello , did You find any solution , if you did kindly let us know,. I
  am having same problem&lt;br&gt; node version 20.9.0&lt;br&gt; yo version 4.3.1&lt;/p&gt;</summary>
    <dc:creator>Arslan Ghaffar</dc:creator>
    <dc:date>2025-08-19T07:01:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Error: EMFILE: too many open files, while deploying react widget.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121377716" />
    <author>
      <name>Piotr Woch</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121377716</id>
    <updated>2022-03-14T17:48:51Z</updated>
    <published>2022-03-13T23:38:35Z</published>
    <summary type="html">&lt;p&gt;Hi Abraham! I am facing the exact same error in a different context
  (trying to build a portlet to publish my Angular app via Liferay). &lt;/p&gt;
&lt;p&gt;Were you able to resolve this problem?&lt;/p&gt;
&lt;p&gt;I would be grateful if you could please let me know (by responding to
  this comment).&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</summary>
    <dc:creator>Piotr Woch</dc:creator>
    <dc:date>2022-03-13T23:38:35Z</dc:date>
  </entry>
  <entry>
    <title>Error: EMFILE: too many open files, while deploying react widget.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120970997" />
    <author>
      <name>Abraham John</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120970997</id>
    <updated>2021-08-17T15:36:30Z</updated>
    <published>2021-07-21T12:49:36Z</published>
    <summary type="html">&lt;p&gt;I've created a React application and done all necessary steps to
  makes the app available as a widget for using on site pages in
  Liferay. But when I run the command  &amp;quot;&lt;span style="color: blue;"&gt;
    &lt;i&gt;npm run deploy&lt;/i&gt;&lt;/span&gt;&amp;quot; I'm getting the following error
  in cmd :&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;&amp;gt; my-react-app@1.0.0 deploy C:\Users\.......\React
      Applications\my-react-app&lt;br /&gt; &amp;gt; npm run build &amp;amp;&amp;amp; lnbs-deploy&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;&amp;gt; my-react-app@1.0.0 build C:\Users\.......\React
      Applications\my-react-app&lt;br /&gt; &amp;gt; babel --source-maps -d build
      src &amp;amp;&amp;amp; npm run copy-assets &amp;amp;&amp;amp; liferay-npm-bundler&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;Successfully compiled 19 files with Babel (4981ms).&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;&amp;gt; my-react-app@1.0.0 copy-assets C:\Users\.......\React
      Applications\my-react-app&lt;br /&gt; &amp;gt; lnbs-copy-assets&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;Project assets copied.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;Error: EMFILE: too many open files, open 'C:\Users\.......\React
      Applications\my-react-app\node_modules\babel-preset-liferay-standard\package.json'&lt;br /&gt;
          at Object.openSync (fs.js:498:3)&lt;br /&gt;     at readFileSync
      (fs.js:394:35)&lt;br /&gt;     at defaultReadPackageSync
      (C:\Users\.......\React
      Applications\my-react-app\node_modules\resolve\lib\sync.js:49:16)&lt;br /&gt;
          at loadpkg (C:\Users\.......\React
      Applications\my-react-app\node_modules\resolve\lib\sync.js:142:19)&lt;br /&gt;
          at loadAsFileSync (C:\Users\.......\React
      Applications\my-react-app\node_modules\resolve\lib\sync.js:107:19)&lt;br /&gt;
          at loadAsDirectorySync (C:\Users\.......\React
      Applications\my-react-app\node_modules\resolve\lib\sync.js:182:16)&lt;br /&gt;
          at loadNodeModulesSync (C:\Users\.......\React
      Applications\my-react-app\node_modules\resolve\lib\sync.js:194:25)&lt;br /&gt;
          at Function.resolveSync [as sync] (C:\Users\.......\React
      Applications\my-react-app\node_modules\resolve\lib\sync.js:98:17)&lt;br /&gt;
          at Project.resolve (C:\Users\.......\React
      Applications\my-react-app\node_modules\liferay-npm-build-tools-common\lib\project\index.js:226:34)&lt;br /&gt;
          at Project.toolResolve (C:\Users\.......\React Applications\my-react-app\node_modules\liferay-npm-build-tools-common\lib\project\index.js:280:25)&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;npm ERR! code ELIFECYCLE&lt;br /&gt; npm ERR! errno 1&lt;br /&gt; npm ERR!
      my-react-app@1.0.0 build: `babel --source-maps -d build src
      &amp;amp;&amp;amp; npm run copy-assets &amp;amp;&amp;amp;
      liferay-npm-bundler`&lt;br /&gt; npm ERR! Exit status 1&lt;br /&gt; npm
      ERR!&lt;br /&gt; npm ERR! Failed at the my-react-app@1.0.0 build
      script.&lt;br /&gt; npm ERR! This is probably not a problem with npm.
      There is likely additional logging output above.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;npm ERR! A complete log of this run can be found in:&lt;br /&gt; npm
      ERR!    
      C:\Users\.......\AppData\Roaming\npm-cache\_logs\2021-07-21T12_02_49_760Z-debug.log&lt;br /&gt;
      npm ERR! code ELIFECYCLE&lt;br /&gt; npm ERR! errno 1&lt;br /&gt; npm ERR!
      my-react-app@1.0.0 deploy: `npm run build &amp;amp;&amp;amp;
      lnbs-deploy`&lt;br /&gt; npm ERR! Exit status 1&lt;br /&gt; npm ERR!&lt;br /&gt; npm
      ERR! Failed at the my-react-app@1.0.0 deploy script.&lt;br /&gt; npm
      ERR! This is probably not a problem with npm. There is likely
      additional logging output above.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: red;"&gt;
    &lt;em&gt;npm ERR! A complete log of this run can be found in:&lt;br /&gt; npm
      ERR!     C:\Users\.......\AppData\Roaming\npm-cache\_logs\2021-07-21T12_02_50_229Z-debug.log&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;em&gt;I'm using Liferay CE portal tomcat 7.4.0 ga1 bundle on Windows 10.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;em&gt;Please help me on this.&lt;/em&gt;&lt;/p&gt;</summary>
    <dc:creator>Abraham John</dc:creator>
    <dc:date>2021-07-21T12:49:36Z</dc:date>
  </entry>
</feed>
