Skip to content
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

Port #30910 to release-3.4 #31024

Merged
merged 1 commit into from Apr 19, 2019

Conversation

RyanCavanaugh
Copy link
Member

Fixes #30909 by porting #30910

…microsoft#30910)

* Check to make sure default npm exists at path before trying to use it

**Bug**
If the typings installer is run under a copy of node that does not include npm—but on a machine that does have npm installed—it will incorrectly try to use the npm that does not exist next to its running version of node

**Fix**
Make sure that we check that npm we select exists before trying to use it as the default. Otherwise, fall back to using plain old `npm`

* Add command line flag to gate new behavior

* Fix missing semicolon
@RyanCavanaugh RyanCavanaugh merged commit 85241c3 into microsoft:release-3.4 Apr 19, 2019
@RyanCavanaugh RyanCavanaugh deleted the port30910 branch April 23, 2019 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants