 <p>Try clearing the npm cache and try the npm install again. You can use the following to clear the npm cache.</p> <pre><code>npm cache clean &lt;path to express-generator&gt; </code></pre> <p>Sometimes you get this error even when you are on ssh, the npm registry might be configured to use a different registry for npm packages and that registry might not have a express-generator</p>