user2431114 user2431114 - 2 years ago 106
PHP Question

having error while trying to run gulp on larvel

hi there i am trying to configure a Laravel project i have configured node and bower with no problem but after sudo npm install gulp. when i run gulp i get this error

throw err;

Error: Cannot find module 'laravel-elixir'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/home/gulpfile.js:1:76)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)

Internet search solutions suggested to change the gulp.js file first line to

var elixir = require('laravel-elixir');

but its already there.A little help in this matter appreciated

Answer Source

I would recommend removing everything from inside your node_modules folder and running npm install again. By the sounds of it, something hasn't been pulled in correctly.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download