<p dir="auto">When I try to start program using command<br>
<code class="notranslate">sudo npx react-devtools</code><br>
I get error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14:11)"><pre class="notranslate"><code class="notranslate">/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/usr/local/lib/node_modules/react-devtools/node_modules/electron/index.js:14:11)
</code></pre></div>
<p dir="auto">Even I install react-devtools localy by <code class="notranslate">sudo npm install -g react-devtools</code> and after start program by <code class="notranslate">sudo react-devtools</code>, get the same error.</p>
<p dir="auto">Any idea how to fix this?</p>
<hr>
<p dir="auto">Linux Mint 20 Cinnamon<br>
react-devtools Version 4.8.2</p>
<p dir="auto">I use systemJs to load a system module in a react project, the module include some react function component use react hooks。<br>
and react project get Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons</p>
<p dir="auto">React version: 17.0.2</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>git clone <a href="mailto:git@github.com">git@github.com</a>:ytudt/react-systemjs.git</li>
<li>cd base-components  npm install &amp;&amp; npm run start</li>
<li>cd base-projects   npm install &amp;&amp; npm run start</li>
<li>open <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a> in the default browser</li>
</ol>
<p dir="auto">Link to code example:</p>
<p dir="auto"><a href="https://github.com/ytudt/react-systemjs">https://github.com/ytudt/react-systemjs</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">expected run ok</p>