-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Check detected default npm path is really existing #23925
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
Check detected default npm path is really existing #23925
Conversation
f0ba892
to
1fda3a4
Compare
@sheetalkamat and @Andy-MS can you please review. |
Why do we look in "node" folder at all? Why not always use it as "npm" so that we use default npm location and users wanting to use custom npm location can use the |
VS does not have npm installed globally, it is installed in a local folder, next to
we could, but that would break existing users of the server. and back then we did not have the npm location flag. |
Actually do we need to check it as fileExists or Any type of entry is ok? |
You mean we should also check the file has executable permission? Maybe. But I think there is no case where |
The check checks for the existence of a file called Reverted in #24425. We need a better fix for the original issue. |
@mhegazy ok, so should we check one of |
I think we should list the directory and see if an npm file exist. |
@mhegazy I see. Actually I'm not a Windows user. So I don't know the list of possible installation directories for |
this is not a windows thing. it is a VS thing. VS ships |
Fixes #23924