Skip to content

npx command not found when calling exec in test #2948

Answered by novemberborn
jonasmerlin asked this question in Q&A
Discussion options

You must be logged in to vote

My guess is that the way you provide the env object your other environment variables may not be passed through, meaning that PATH is empty and the child process can't find npx. ls is built-in so works. I don't expect this to be related to the worker threads.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jonasmerlin
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