Webpack-dev-server: constant 100% CPU usage with node v6.0.0

Created on 3 May 2016  路  7Comments  路  Source: webpack/webpack-dev-server

Not sure if this is happening to anyone else, but when I try to run webpack-dev-server with node 6, it pegs my cpu until I kill the process. Older versions of node would only use 100% CPU during active compilations. This kills my battery life. It might also be related to a loader (I've got my suspicions about node-sass).

Anybody else running into this?

bug

Most helpful comment

I'm seeing the same problem. I think it may be the same issue as https://github.com/webpack/webpack-dev-middleware/issues/40 .

In my grommet project which uses webpack-dev-server, the problem went away when I deleted my node_modules directory and reinstalled everything.

All 7 comments

I'm more at like 20-35% steady cpu usage, still pretty awful. Only noticed when my lap started getting pretty hot 馃槃

I have 100% of CPU with Node 5.x

I'm seeing the same problem. I think it may be the same issue as https://github.com/webpack/webpack-dev-middleware/issues/40 .

In my grommet project which uses webpack-dev-server, the problem went away when I deleted my node_modules directory and reinstalled everything.

I had 135% CPU with Node v6.3 -- reinstalling node_modules helped a TON. Thanks @JeffAMcGee

Changing the node major version probably trips up the native fsevents, so does it fall back to pulling badly? Reinstalling fixed it for me as well.

Thanks for the tip

When I upgraded from node 6 to node 8, I had the same problem, excessive cpu usage.

Deleting node_modules and reinstalling was the solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tulika21-zz picture tulika21-zz  路  3Comments

Ky6uk picture Ky6uk  路  3Comments

MJ111 picture MJ111  路  3Comments

daryn-k picture daryn-k  路  3Comments

subblue picture subblue  路  3Comments