So I’ve jumped into learnyoumongo, and I seem to be having an issue with the Find challenge, or my install isn’t right. It got to the point where I basically had the solution bracket for bracket and it still won’t register. After having dug around for people having the same problem, I think there is something wrong with my install.
I’m on my third c9 workspace fir learnyoumongo, making sure to take each step with meticulous accuracy. Everything still seems perfect but I’m getting the same error:
~/workspace $ learnyoumongo verify solution.js
/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/exercises/find/exercise.js:37
db.collection(‘parrots’).remove({}, function(err) {
^
TypeError: Cannot read property ‘collection’ of undefined
at Exercise. (/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/exercises/find/exercise.js:37:5)
at next (/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/node_modules/workshopper-exercise/exercise.js:260:17)
at Exercise.end (/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/node_modules/workshopper-exercise/exercise.js:266:5)
at Workshopper.end (/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/node_modules/workshopper/workshopper.js:191:12)
at Workshopper.done (/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/node_modules/workshopper/workshopper.js:323:19)
at Exercise. (/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/node_modules/workshopper-exercise/exercise.js:149:14)
at /home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/node_modules/workshopper-exercise/exercise.js:136:16
at Exercise. (/home/ubuntu/.nvm/versions/node/v4.4.5/lib/node_modules/learnyoumongo/node_modules/workshopper-exercise/filecheck.js:10:14)
at FSReqWrap.oncomplete (fs.js:82:15)
I’ve seen others with this same error, but gotten by people who were able to resolve it in ways that I have already checked. So again, I believe this is an installation issue. I got errors but am not sure what they mean or if they are critical (I will post as first comment). Some insight on this issue would be very much appreciated.