-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
Description
Hello! I would like to make a suggestion to reduce the number of threads used by lerna in the "npm run watch" script.
Line 69 in 216ed95
| "watch": "lerna run watch --no-sort --stream --concurrency 999" |
I suggest using the default number of threads (4) instead of the current number (999). The reason is that my VM froze up when I tried to run "npm run watch".
Environment
Gatsby version: master
Node.js version: v8.9.4
Operating System: Ubuntu 16.04 VM running on a Windows host. Has 4GB of RAM allotted. Had 8 firefox tabs open as well as one terminal session in which I ran the "npm run watch" command.
Actual result
VM froze.
Expected behavior
VM shouldn't freeze.
Steps to reproduce
1. Configure Ubuntu 16.04 VM with 4GB of RAM. Start the VM
2. Open up 8 firefox tabs, browse to github in all of them.
3. Open up one terminal session.
4. Go to your forked gatsby project root.
5. Run "npm run watch"
6. Notice slowness or freezing.
Note
I'm happy to make a PR.
Thanks for reading!