Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
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

Open

Description

@livviest

Versions

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:

  1. Install on Linux 4.19 using yarn global add @microsoft/botframework-cli
  2. 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:

  1. Install dos2unix
  2. 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
  3. Use dos2unix on run

Note: dos2unix will not work on symbolically linked files so be sure to locate the actual file

[bug]

Activity

  1. axelsrz commented on Apr 16, 2020

    @axelsrz
    Member

    Hey Emilio Munoz (@munozemilio) could you take a look at this?

  2. munozemilio commented on Apr 17, 2020

    @munozemilio
    Contributor

    Hello @ChrisRenfrow. I just installed and ran the cli in a clean vm and the command worked just fine.
    Screen Shot 2020-04-16 at 10 32 39 PM

  3. added
    Bot Services
    customer-replied-to
    customer-reported
    on Apr 17, 2020
  4. 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
  5. livviest commented on Apr 17, 2020

    @livviest
    Author

    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.

  6. munozemilio commented on Apr 17, 2020

    @munozemilio
    Contributor

    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

  7. added
    R10
    on Apr 17, 2020
  8. removed
    R10
    on Jun 23, 2020
  9. scheyal commented on Jun 25, 2020

    @scheyal

    Investigation: Issue is indeed 0a0d in first line
    #!/usr/bin/env node

  10. 4 remaining items

  11. scheyal commented on Jul 13, 2020

    @scheyal
  12. removed their assignment
    on Jul 21, 2020
  13. added and removed
    R10
    on Jul 21, 2020
  14. added this to the R11 milestone on Sep 10, 2020
  15. added
    feature-request
    and removed on Sep 10, 2020
  16. added
    Area: Schema
    on Sep 14, 2020
  17. removed this from the R11 milestone on Oct 14, 2020
  18. added
    backlog
    on Oct 19, 2020
  19. added
    ExemptFromDailyDRIReport
    on Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: SchemaBot ServicesExemptFromDailyDRIReportbacklogcustomer-replied-tocustomer-reportedfeature-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions