Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gulp doesn't work

Tags:

gulp

gulp-sass

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

like image 850
user3519727 Avatar asked Nov 09 '14 11:11

user3519727


People also ask

Why is gulp not working?

To solve the error "gulp: command not found", install the gulp-cli package globally by running npm install -g gulp-cli and restart your terminal. If the command fails, run it with sudo and make sure the correct PATH is set in your system's environment variable.

How do I run gulp locally?

Install Gulp into your local project To install Gulp locally, navigate to your project directory and run npm install gulp . You can save it to your package. json dependencies by running npm install gulp --save-dev . Once you have Gulp installed locally, you can then proceed to create your gulpfile.

How do I know if gulp is installed?

First run npm -g install gulp-cli then run gulp -v. Alternatively, you can just run npm list gulp.


1 Answers

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

like image 195
JCR000 Avatar answered Nov 10 '22 21:11

JCR000