Laravel - error al ejecutar npm run dev ¿por que sucede?

 
Vista:

error al ejecutar npm run dev ¿por que sucede?

Publicado por ricardo (1 intervención) el 26/07/2019 22:47:28
PS C:\xampp\htdocs\sistema_ventas> npm install --save-dev cross-env
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of imagemin@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
PS C:\xampp\htdocs\sistema_ventas> npm run dev

> @ dev C:\xampp\htdocs\sistema_ventas
> npm run development


> @ development C:\xampp\htdocs\sistema_ventas
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

assert.js:350
throw err;
^

AssertionError [ERR_ASSERTION]: mix.js() is missing required parameter 2: output
at Function.js (C:\xampp\htdocs\sistema_ventas\node_modules\laravel-mix\src\Assert.js:18:9)
at JavaScript.register (C:\xampp\htdocs\sistema_ventas\node_modules\laravel-mix\src\components\JavaScript.js:39:16)
at Api.mix.(anonymous function).args [as js] (C:\xampp\htdocs\sistema_ventas\node_modules\laravel-mix\src\components\ComponentFactory.js:98:53)
at Object.<anonymous> (C:\xampp\htdocs\sistema_ventas\webpack.mix.js:27:2)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ASUS\AppData\Roaming\npm-cache\_logs\2019-07-26T20_43_16_465Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ASUS\AppData\Roaming\npm-cache\_logs\2019-07-26T20_43_16_577Z-debug.log
PS C:\xampp\htdocs\sistema_ventas>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder