Gulp doesn't work

user3519727 picture user3519727 · Nov 9, 2014 · Viewed 24.6k times · Source

I installed gulp on my machine, but when i try to compile my project i have this error:

Error: Cannot find module 'del'
    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.<anonymous> (/Applications/MAMP/htdocs/project/gulpfile.js:6:11)
    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)

I dont understand the error and i dont know how solve. Someone can help me? Thanks

Answer

JCR000 picture JCR000 · Dec 14, 2014

there may be a couple of steps to complete but for you the first one is

npm install --save del

Try to install what ever gulp complains about not being found.

Better yet

npm install

For all the installs