I`m trying to use laravel elixir in order to compile my js assets and I have the following error:
Error: Cannot find module 'laravel-elixir/ingredients/commands/Utilities'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\xampp\htdocs\laravel\laravel\node_modules\laravel-elixir-browserify\index.js:5:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
I`m trying to use browserify in order to compile the "required" directives for my client side code. Node version is 6.10 and laravel elixir is 6.0.0-15.
My gulpfile.js is looking like this:
var elixir = require('laravel-elixir');
var browserify = require('laravel-elixir-browserify');
elixir(function(mix){
browserify.init();
mix.browserify("bootstrap.js");
});
Any help here will be highly appreciated. Thanks!
You just need to install missing dependencies manually.
For exemple :
npm install --dev buble@^0.12.0
and rerun npm install
afterward.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.