Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot find module './lib/should'
    primarykey
    data
    text
    <p>i have a test code and trying to run it </p> <pre><code>var should = require("should") describe('Array', function(){ describe('#indexOf()', function(){ it('should return -1 when the value is not present',function(){ [1,2,3].indexOf(5).should.equal(-1); [1,2,3].indexOf(0).should.equal(-1); }) }) }) </code></pre> <p>when i run it i am getting error </p> <pre><code>Error: Cannot find module './lib/should' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.&lt;anonymous&gt; (/home/ritesh/projects/passport-topcoder/node_modules/should/index.js:2:18) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.&lt;anonymous&gt; (/home/ritesh/projects/passport-topcoder/test/module.test.js:1:76) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at /usr/local/lib/node_modules/mocha/lib/mocha.js:152:27 at Array.forEach (native) at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:149:14) at Mocha.run (/usr/local/lib/node_modules/mocha/lib/mocha.js:306:31) at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/mocha/bin/_mocha:348:7) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:901:3 </code></pre> <p>i included mocha and should in package.json but why i am facing this error .should is showing in my node modules also.please guideline</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload