Laravel-mix: Webpack not working if its Monday

Created on 8 Jul 2019  路  3Comments  路  Source: JeffreyWay/laravel-mix

  • Laravel Mix Version: #.#.# (npm list --depth=0)
    4.0.16
  • Node Version (node -v):
    v10.9.0
  • NPM Version (npm -v):
    6.4.1
  • OS:
    Windows 10

Description:

When running "npm run watch" it fails with an error:

TypeError: process.getuid is not a function

This error only happens if the day is monday and the issue has been fixed in latest version of webpack: https://github.com/webpack/webpack-cli/issues/962

Steps To Reproduce:

  1. npm run watch
stale

Most helpful comment

@bernisnukic Yup. This is causing issues for a few of us at my workplace.
Workaround: Delete your node_modules folder and then run npm install.
Edit: Just deleting node_modules/webpack-cli works.

All 3 comments

@bernisnukic Yup. This is causing issues for a few of us at my workplace.
Workaround: Delete your node_modules folder and then run npm install.
Edit: Just deleting node_modules/webpack-cli works.

Yeah, its kind of annoying error. It happened with me on different occasions without any reason. My fix is to remove webpack-cli folder from node-modules. Then run npm install

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amin101 picture amin101  路  3Comments

wendt88 picture wendt88  路  3Comments

sdebacker picture sdebacker  路  3Comments

mementoneli picture mementoneli  路  3Comments

kpilard picture kpilard  路  3Comments