learn-co-curriculum / for-each-lab

Practice using Array.prototype.forEach in JavaScript
Other
0 stars 11 forks source link

missing module error message when running test #12

Closed Nic-Sevic closed 3 years ago

Nic-Sevic commented 5 years ago

Cloning lesson... Opening lesson... Installing npm dependencies... yarn install v1.13.0 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is adv ised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock fil es. To clear this warning, remove package-lock.json. [1/5] Validating package.json... error for-each-lab@0.1.0: The engine "node" is incompatible with this module. Expected version "6.x". Got "8.15 .1" error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. [10:04:30] (master) for-each-lab-js-intro-000 // ♥ learn test added 124 packages from 470 contributors and audited 180 packages in 3.167s found 4 vulnerabilities (2 low, 1 high, 1 critical) run npm audit fix to fix them, or npm audit for details

for-each-lab@0.1.0 test /home/droll-course-8088/for-each-lab-js-intro-000 mocha -R mocha-multi --reporter-options nyan=-,json=.results.json 0 ,------, 1 | /_/\ 0 ~|( x .x) _ "" "" 0 passing (12ms) 1 failing 1) "before all" hook: Error: Cannot find module 'jsdom/lib/old-api' at require (internal/module.js:11:18) at Context. (node_modules/mocha-jsdom/index.js:53:5)

micahshute commented 5 years ago

Fix to above problem

Change package.jsonmocha and mocha-jsdom versions to the following:

"mocha": "^2.5.3", "mocha-jsdom": "~1.1.0"

And then run npm install