Skip to content

Any idea how to work around ERR_WORKER_INVALID_EXEC_ARGV ? #9237

Answered by mischnic
danieltroger asked this question in Q&A
Discussion options

You must be logged in to vote

There is already some logic to filter out a few Node CLI arguments when starting workers:

async fork(forkModule: FilePath) {
let filteredArgs = process.execArgv.filter(
v => !/^--(debug|inspect|max-old-space-size=)/.test(v),
);
for (let i = 0; i < filteredArgs.length; i++) {

Looks like that has to be added as well. Though it's interesting that your env somehow causes Node to run without the Turbofan JIT

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@danieltroger
Comment options

Answer selected by mischnic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants