Uh oh!
There was an error while loading. Please reload this page.
configure.js: escape '<' - #1506
Conversation
Fishrock123
commented
Jul 20, 2018
rvagg
commented
Aug 9, 2018
I'm not confident enough to pull this in atm, does someone else with deep enough expertise want to confirm this is the right thing to do? |
samuelmaddock
commented
Oct 6, 2018
I'm experiencing this bug as well, any update on reviews? Applying the patch manually seems to fix the issue for me. |
rvagg
commented
Jun 20, 2019
@yeerkkiller1 if you're still interested, would you mind rebasing and squashing your two commits? |
On windows invoking spawn on a batch file results in additional argument processing. Special characters need to be escaped (twice). fixesnodejs#1501 (comment)
yeerkkiller1
commented
Jun 20, 2019
@rvagg, no problem, it's squashed and pushed now. |
rvagg
commented
Jun 20, 2019
SGTM but I would love a +1 from @bzoz, @joaocgreis, @refack or one of our other core Windows experts, I've never had experience escaping in .bat with |
jlennox
commented
Feb 24, 2020
@rvagg This is indeed the correct fix. I just spent an hour debugging this issue myself. It would be great if this fix would be merged. |
rvagg
commented
Feb 25, 2020
@bzoz, @joaocgreis, please confirm |
bzoz
commented
Feb 25, 2020
I think this is not needed anymore. #1582 made a change that extracts the Python .exe filename even from batch files and then uses it. We are no longer using the batch file to spawn Python executables. I've also was not able to trigger the original issue. @yeerkkiller1, @jlennox could you verify that the issue is still present in master? |
bzoz
left a comment
There was a problem hiding this comment.
(just making it explicit: we should not land this if it is already fixed in master)
rvagg
commented
Feb 26, 2020
#1582 went out with v5.0.0 so should be in npm already, maybe update npm: |
Fixes: #1501
On windows invoking spawn on a batch file results in additional
argument processing. Special characters need to be escaped (twice).
Checklist
npm install && npm testpassesDescription of change
Fixes issue where npm install fails if python is a batch file. This occurs because the batch file tries to interpret the '<' specially.
I tested this change on my windows machine (with and without python.bat in my path). I don't think this change will impact other platforms, as it only applies changes when the platform is win32, and when python is a batch file (which would have broken anyway).