-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell integration breaks paths inside npm commands on Windows #206285
Comments
Python does indeed set |
Having looked closer at the screenshot, it seems like that syntax the terminal shows has it prepending the path (though it duplicates everything I already had in my path which is not really necessary.) Interestingly when I manually call an |
@Tyriar If you look closely, Python is still prepending to
Right, unfortunately we have to prepend |
My guess is something in shell integration script is adding to @connor4312 Can you try some other way of printing
|
Yes, the PATH actually looks correct (#206285 (comment)). Because there's also a difference in how |
Actually now that I think about it, Command prompt does not even have shell integration script support, does it? @Tyriar So I wouldn't expect shell integration setting to have any effect. @connor4312 I assume Command prompt is set as default profile based on "echo %path%" command you mentioned above. |
no, I'm using powershell, but it seems like |
I see gotcha. Feel free to reassign if Python extension can do anything from our end to solve this. |
fyi, something changed and I no longer get this issue 🤷 |
npm run foo
. Get an error like "'tsc' is not recognized as an internal or external command"npm run foo
and it worksThe text was updated successfully, but these errors were encountered: