NPM - Error: Cannot find module '../'
<p>I'm reading <a href="https://github.com/hapijs/hapi-auth-cookie" rel="nofollow">this</a> doc on <code>hapi-auth-cookie</code> and trying to run sample server.here is what i did :</p>

<p>1-putting sample server in server.js</p>

<p>2-npm init</p>

<p>3-node server.js</p>

<p>4-npm install --save hapi </p>

<p>5-node server.js but this time i get a new error </p>

<p><strong>Error: Cannot find module '../'</strong></p>

<p>somewhere in the code it's requiring <strong>'../'</strong></p>

<pre><code>server.register(require('../'), (err) =&gt; {

    if (err) {
        throw err;
    }
</code></pre>

<p>But i don't understand this part really.you can see the full code in the link above.what should i do? thanks</p>