You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
DOS line-endings in @microsoft/botframework-cli/bin/run when installed with yarn #711
What CLI version are you using.
@microsoft/botframework-cli/4.8.0 linux-x64 node-v13.12.0
What Nodejs version are you using
v13.12.0
What command-line interpreters are you using
bash
What OS are you using
Manjaro Linux 4.19.114-1
Describe the bug
Installing bf in a *nix environment using yarn@v1.22.4 results in the following error /usr/bin/env: ‘node\r’: No such file or directory
To Reproduce
Steps to reproduce the behavior:
Install on Linux 4.19 using yarn global add @microsoft/botframework-cli
Run bf
Expected behavior
I expected it to run without the error detailed above
Workaround
Install using npm@v6.14.4 instead, otherwise if installing with yarn@v1.22.4 try the following:
Install dos2unix
Locate @microsoft/botframework-cli/bin/run
This will vary depending on how bf was installed
Mine was located at ~/.config/yarn/global/node_modules/@microsoft/botframework-cli/bin/run
Use dos2unix on run
Note:dos2unix will not work on symbolically linked files so be sure to locate the actual file
changed the title [-]DOS line-endings in `@microsoft/botframework-cli/bin/run`[/-][+]DOS line-endings in `@microsoft/botframework-cli/bin/run` when installed with yarn[/+]on Apr 17, 2020
Emilio Munoz (@munozemilio) Upon closer inspection it looks like it has something to do with installing using yarn rather than npm. I've included more details above.
Got it. I will flag this as an enhancement. We have no documentation around yarn so that be something we will have to add/test and flag as supported. Thanks for reporting this @ChrisRenfrow
Activity
axelsrz commentedon Apr 16, 2020
Hey Emilio Munoz (@munozemilio) could you take a look at this?
munozemilio commentedon Apr 17, 2020
Hello @ChrisRenfrow. I just installed and ran the cli in a clean vm and the command worked just fine.

[-]DOS line-endings in `@microsoft/botframework-cli/bin/run`[/-][+]DOS line-endings in `@microsoft/botframework-cli/bin/run` when installed with yarn[/+]livviest commentedon Apr 17, 2020
Emilio Munoz (@munozemilio) Upon closer inspection it looks like it has something to do with installing using
yarnrather thannpm. I've included more details above.munozemilio commentedon Apr 17, 2020
Got it. I will flag this as an enhancement. We have no documentation around yarn so that be something we will have to add/test and flag as supported. Thanks for reporting this @ChrisRenfrow
scheyal commentedon Jun 25, 2020
Investigation: Issue is indeed 0a0d in first line
#!/usr/bin/env node
4 remaining items
scheyal commentedon Jul 13, 2020