wilk / microjob

A tiny wrapper for turning Node.js worker threads into easy-to-use routines for heavy CPU loads.
https://wilk.github.io/microjob/
MIT License
2.02k stars 47 forks source link

Cannot find module 'worker_threads' #50

Closed RezaErfani67 closed 4 years ago

RezaErfani67 commented 5 years ago

i run this command nodemon app.js --experimental-worker with version 10.7

image

wilk commented 5 years ago

This would probably happens because your passing the --experimental-worker flag to nodemon instead to nodejs. You need to pass it as a NODE_OPTIONS inside the nodemon.json config file.

Here's the whole explanation: https://stackoverflow.com/a/53807655/916784

wilk commented 4 years ago

I'm closing this issue due to inactivity. Feel free to re-open it.

RezaErfani67 commented 4 years ago

thank you Mr