FIX the NPM related error from my MAC pc via anydesk or teamviewer
Budget: ₹600 – ₹1,000 INR
Hi
I have a vue + laravel application. I was working fine but for some reason I can't run this command:
npm run watch
It's showing be this error message:
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn node_modules/webpack/bin/webpack.js ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: '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'
]
}
And I can not install any other component using this command
npm install any-component
So, your job is to fix this from my MAc pc. I know it's some kind of dependency missing, so it will take less time to fix it. I need to fix it directly via anydesk and teamviewer.
Thanks.
I have a vue + laravel application. I was working fine but for some reason I can't run this command:
npm run watch
It's showing be this error message:
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn node_modules/webpack/bin/webpack.js ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: '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'
]
}
And I can not install any other component using this command
npm install any-component
So, your job is to fix this from my MAc pc. I know it's some kind of dependency missing, so it will take less time to fix it. I need to fix it directly via anydesk and teamviewer.
Thanks.