Skip to content

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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants