Following error is occurring when I am trying to run
node_modules/.bin/webpack

Can you do rm -rf node_modules && npm install && node_modules/.bin/webpack. Does it turn out differently?
This and cleaning up my package.json solved the error running Laravel 5.3
I keep ending up here debugging the same error but for a different reason - using yarn.
The problem being that the yarn.lock somehow ends up with broken packages and the solution, if it helps anyone, is simply to reset it all:
rm -rf node_modules
rm yarn.lock
yarn cache clean
yarn install
node_modules/.bin/webpack
Hi All,
I am getting the same issue while running the karma file.

"karma" : "2.0.0",
"karma-webpack": "^2.0.3",
"webpack": "^1.12.2"
Could you please let me know where I went wrong.
Most helpful comment
I keep ending up here debugging the same error but for a different reason - using yarn.
The problem being that the
yarn.locksomehow ends up with broken packages and the solution, if it helps anyone, is simply to reset it all: