You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my testing, if I just call require('cluster') the Node.js core module will get loaded, whether I install this module as a package.json devDependency or a regular dependency
I am wondering how I can reliably load this module instead of the core module, and vice versa. Any insight or help would be of help thanks!
The text was updated successfully, but these errors were encountered:
@bnoordhuis yeah thanks, good call, I didn't realize how old this project was, I remember now that it became part of core so the userland module was abandoned.
As mentioned on the Node.js help thread, you can also require a userland module with the same name as a core module by adding a slash like so:
I opened this issue with Node.js help
nodejs/help#562 (comment)
in my testing, if I just call
require('cluster')
the Node.js core module will get loaded, whether I install this module as a package.jsondevDependency
or a regulardependency
I am wondering how I can reliably load this module instead of the core module, and vice versa. Any insight or help would be of help thanks!
The text was updated successfully, but these errors were encountered: