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

'yarn' command not found while installing 'botbuilder-dialogs' #4610

Closed
qinezh opened this issue Jan 29, 2024 · 2 comments · Fixed by #4611
Closed

'yarn' command not found while installing 'botbuilder-dialogs' #4610

qinezh opened this issue Jan 29, 2024 · 2 comments · Fixed by #4611
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@qinezh
Copy link
Contributor

qinezh commented Jan 29, 2024

Versions

  • SDK: botbuilder-dialogs
  • SDK version: 4.22.0
  • Node.js version: 18.17.0
  • NPM version: 9.6.7
  • OS: Windows 11

Describe the bug

Failed to install the SDK with npm and below error throws:

npm ERR! code 1
npm ERR! path C:\Users\xyz\node_modules\botbuilder-dialogs
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c yarn text-suite && yarn date-time && yarn number-with-unit
npm ERR! 'yarn' is not recognized as an internal or external command,
npm ERR! operable program or batch file.

To Reproduce

Install the botbuilder-dialogs SDK with npm:

npm install botbuilder-dialogs

Expected behavior

Install the SDK successfully without the requirement of 'yarn'.

Additional context

Seems the bug is introduced by the npm script of post-install a few days ago:

"postinstall": "yarn text-suite && yarn date-time && yarn number-with-unit",

Related PR: #4608

@qinezh qinezh added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Jan 29, 2024
@palonix-seth
Copy link

Was able to get around this just by running 'npm install yarn'

@tracyboehrer
Copy link
Member

This was corrected in 4.22.1 just pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants