How to solve " Module not found: 'readline'" in Node project
<p>I am using create-react-app to build a Node project. </p>

<p>And I have used <code>npm -i --save-dev sat-words</code> to install a module called <code>sat-words</code>. However when I run the project it tells me </p>

<p><code>Module not found: 'readline' ...</code></p>

<p>In <code>sat-words</code>'s <code>index.js</code> file it uses <code>readline</code> to read a text file, like this:</p>

<pre><code>var rl = require('readline').createInterface({
    input: require('fs').createReadStream(__dirname + '/word-list.txt')
  });
</code></pre>

<p>But in Node.js documentation <code>readline</code> is a core module. Why would it throw an error saying the module is not found at runtime?</p>