Closed coverslide closed 1 year ago
not sure I get it, what does this have to do with cluster? maybe best to post this in node's issue queue for require resolution
Except for the fact that Master.resolve doesn't follow the standard require resolution. It tries to rebuild the server path using process.argv like so:
http://github.com/LearnBoost/cluster/blob/master/lib/master.js#L100
so it's not node that's fucking up. Probably would be better to use require.main.filename
ah ok now I see what you mean, I agree, although it's essentially storing that arg in order to re-exec what originally executed so it should be resolved in the same manner
Might be a known problem but ...
lets say i have a file hierarchy thus so:
the contents of my index.js is something like
the following commands work:
the following commands do not work
giving an error like so:
I get the same thing with package.json directories
A trivial problem, but nonetheless, i think cluster should be intelligent enough to solve this problem