Laravel-Mix 8 with run watch

I want to load vue Component in Public file using npm run watch , it gives me a message in watch dev or build ..?

        Node.js v14.15.0.
npm 6.14.8
Laravel Installer 4.1.0
npm run watch
> @ watch C:UsersANOODDesktopLaravel&vuejaLaravel_vue
> npm run development -- --watch


> @ development C:UsersANOODDesktopLaravel&vuejaLaravel_vue
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"

The system cannot find the path specified.
events.js:292
throw er; // Unhandled 'error' event
^

Error: spawn node_moduleswebpackbinwebpack.js ENOENT
at notFoundError (C:UsersANOODAppDataRoamingnpmnode_modulescross-envnode_modulescross-spawnlibenoent.js:6:26)
at verifyENOENT (C:UsersANOODAppDataRoamingnpmnode_modulescross-envnode_modulescross-spawnlibenoent.js:40:16)
at ChildProcess.cp.emit (C:UsersANOODAppDataRoamingnpmnode_modulescross-envnode_modulescross-spawnlibenoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.cp.emit (C:UsersANOODAppDataRoamingnpmnode_modulescross-envnode_modulescross-spawnlibenoent.js:30:37)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn node_modules\webpack\bin\webpack.js',
path: 'node_modules\webpack\bin\webpack.js',
spawnargs: [
'--progress',
'--config=node_modules/laravel-mix/setup/webpack.config.js',
'--watch'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"`
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 WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersANOODAppDataRoamingnpm-cache_logs2022-11-10T12_23_34_863Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: `npm run development -- --watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersANOODAppDataRoamingnpm-cache_logs2022-11-10T12_23_35_071Z-debug.log

from Newest questions tagged laravel-5 – Stack Overflow https://ift.tt/2UaAoCX
via IFTTT

Related Posts

Codeigniter : Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE) in Laravel project

I’m getting following error: **Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE)** Note : It’s working in local but facing issue in production server. private…

Firebase receive notification while tab is active or on focus

What i want is to be able to perform an action when a user receives a notification while the browser is open and tab is active or…

Laravel’s alias loader does not find class

We have a legacy project that we cannot update and we need to make some changes in symfony’s Response.php in vendor. We have solved this by copying…

Laravel 5 – generic document management

I have a system where you can create different types of unique documents. For instance, one document is called Project Identified and this expects certain inputs. Originally,…

Laravel Nova limit the results in indexQuery

I ran intro a situation where I need to limit the results of a resource to only 3 results. To be more specific, based on the logged…

Auditoria en laravel 5.8 [closed]

Cómo puedo automatizar el registro de actividades de un usuario en laravel? Si un usuario ingresa a un app de laravel, debo guardar toda su actividas, a…

Leave a Reply

Your email address will not be published.