Zemke / starter-laravel-angular

Laravel and AngularJS Starter Application Boilerplate featuring Laravel 5.3 and AngularJS 1.5.8
https://starter-laravel-angular.herokuapp.com
Other
368 stars 118 forks source link

Cannot find module 'detective' #34

Closed ghost closed 8 years ago

ghost commented 8 years ago

$ gulp module.js:339 throw err; ^

Error: Cannot find module 'detective' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Object. (C:\Users\Aios\laradock\laravel\node_modules\laravel-elixir\node_modules\browserify\node_modules\module-deps\index.js:6:17) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17)

Zemke commented 8 years ago

I would try

npm cache clean
rm -rf node_modules
npm install
gulp
ghost commented 8 years ago

Solved, upgrading nodejs to 5.4.8 with npm 3.3.2 or

npm install -g npm
rm -rf node_modules
npm install
gulp
ghost commented 8 years ago

Just running on Docker with php 7.0.2 - and Upgraded Laravel to 5.2

Zemke commented 8 years ago

Perfect, thanks!

minhnhat2807 commented 8 years ago

Great, thanks