Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSamuel Fortunato
20,229 PointsSOLVED: FIX YOUR TYPOS!! del error: module.js:549 Cannot find module 'def'
module.js:549
throw err;
^
Error: Cannot find module 'def'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\***************\gulpfile.js:9:8)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Is this an error with del? Tried to reinstall del. Didn't work. :/
1 Answer
Samuel Fortunato
20,229 PointsI am the BIGGEST IDIOT. In my gulpfile.js, instead of requiring del, I required def, and assigned it to del.
const del = require('def');
It works now.
Leaving my question here to show the importance of checking for dumb typos. WOW. Haha
Kjetil-Lennart A. Lorentzen
13,390 PointsThis made me smile, thank you. I don't feel so alone now
Samuel Fortunato
20,229 PointsSamuel Fortunato
20,229 PointsTried to install a module called def (
npm install def --save-dev
), but then I got this error:I'm on Windows 10, if that matters. :/