Dec 21, 2017
0
Level 1
Error: spawn php artisa vue-i18n:generate ENOENT when trying to make gulp
Actually I'm trying to compile one gulpfile, when I make
gulp --gulpfile gulpfile.js
this error appears:
[17:42:15] Using gulpfile ~/Escritorio/Projectstoshow/test/test/gulpfile.js
[17:42:15] Starting 'all'...
[17:42:15] Starting 'task'...
[17:42:15] Starting 'js-langs'...
[17:42:15] Finished 'task' after 38 ms
[17:42:15] Starting 'webpack'...
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn php artisan vue-i18n:generate ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:441:9)
at process._tickCallback (node.js:355:17)
at Function.Module.runMain (module.js:444:11)
at startup (node.js:136:18)
at node.js:966:3
I installed the vue with this command
npm install vue-i18n --save
And this is my gulpfile (the task called js-langs it's the problem)
const elixir = require('laravel-elixir');
var argv = require('yargs').argv;
var shell = require('gulp-shell');
require('laravel-elixir-vue-2');
elixir(function(mix) {
mix.task('js-langs', ['resources/lang/**/*.php']);
//VENDOR CSS
var vendorcss = [
'../../../node_modules/flexslider/flexslider.css',
'../../../node_modules/animate.css/animate.css',
];
var vendorjs = [
];
if (argv.production !== undefined) {
vendorjs.push('lib/production.js');
}
mix.webpack('app.js', 'public/assets/js/app.js')
mix.styles(vendorcss, 'public/assets/css/vendor.css');
mix.sass(['../../../public/assets/css/vendor.css', 'resources/assets/sass/app.scss'], 'public/assets/css');
mix.webpack(vendorjs, 'public/assets/js/vendor.js');
if (!argv.production && !argv.devel) {
mix.browserSync({
proxy: 'testing.loc',
open: false,
reloadDebounce: 1000,
files: [
//'app/**/*.php',
'public/assets/css/**/*.css',
'public/assets/js/**/*.js',
'public/assets/js/**/*.vue',
'resources/views/**/*.php'
]
})
}
})
gulp.task('js-langs', shell.task([
"php artisan vue-i18n:generate",
]));
If I make the command on shell works, what's wrong? Thanks!
Please or to participate in this conversation.