Search code examples
phplaravelgulp

gulp - Error: Cannot find module 'laravel-elixir'


when i type in terminal in laravel dei project gulp always say

module.js:549
throw err;
^
Error: Cannot find module 'laravel-elixir'
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:\xampp\htdocs\codehacking\gulpfile.js:1:76)
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)

and try npm install and npm install --global gulp too


Solution

  • Try installing laravel-elixir manually in your project directory.

    npm install laravel-elixir --save-dev