Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@benbrown
Copy link
Contributor

@benbrown benbrown commented Feb 25, 2021

Description

Previously, we were creating a yeoman-environment object in a constructor, which caused the app to crash if npm is not installed.

This change moves the yeoman-evironment calls to the create methods, so the error should not crash the app during startup.

Includes #5880

Task Item

Fixes #5951

Screen Shot 2021-02-25 at 11 55 57 AM

@coveralls
Copy link

coveralls commented Feb 25, 2021

Coverage Status

Coverage decreased (-0.007%) to 53.96% when pulling 27d2bec on benbrown/fixyo into 7896dd4 on main.

@benbrown benbrown merged commit acd3175 into main Feb 25, 2021
@benbrown benbrown deleted the benbrown/fixyo branch February 25, 2021 19:30
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…oft#5963)

* return the error message for a status

* move yeoman init where it is called instead of in constructor to avoid fails around missing npm[

* correct path for .yo-repository folder

* Catch problems with yeoman env regarding npm and throw a customized error with more information.

* update text of message
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.

bug: yeoman env will fail during startup if npm is missing

4 participants