Closed zloirock closed 2 years ago
Probably should fix this. Anyone attempt patches upstream I can pull in?
Cool ty. I'll look at getting that merged and tested.
@MarmadileManteater That would be great and I appreciate it!
https://github.com/bcomnes/npm-run-all2/releases/tag/v6.0.3
Reopen if there are issue
It seems it's still not fixed
@MarmadileManteater
@zloirock you are right this didn't quite work out.
@MarmadileManteater Can you provide more information on the following env vars you referenced in your patch?
process.env.NPM_CLI_JS
rocess.env.npm_config_user_agent
Are these standard or set by a tool somewhere or did you expect people to have to set these?
@MarmadileManteater https://github.com/bcomnes/npm-run-all2/pull/96
This could be addressed by looking for npm_cli.js in the same directory that npx_cli.js is in since npm_execpath seems to exist on all systems.
Great minds think alike!
Yep, at debugging I see:
options.npmPath: null
process.env.NPM_CLI_JS: undefined
process.env.npm_execpath: /usr/local/lib/node_modules/npm/bin/npx-cli.js
npmPath: /usr/local/lib/node_modules/npm/bin/npx-cli.js
npmPathIsJs: true
execPath: /usr/local/bin/node
so #96 looks like a proper fix.
Ok everyone give https://github.com/bcomnes/npm-run-all2/releases/tag/v6.0.4 a whirl.
It works for me, thanks 👍
Original issue: https://github.com/mysticatea/npm-run-all/issues/209