Skip to content

npm exec -- tsgo does not work #922

Not planned
Not planned
@Sainan

Description

@Sainan
Contributor

As per the announcement, I've done npm install -D @typescript/native-preview but I'm unable to go further and execute tsgo. I've tried:

  • npm exec -- tsgo --noEmit
  • npm exec -- @typescript/native-preview --noEmit

Both yield the following error message:

'tsgo' is not recognized as an internal or external command,
operable program or batch file.

Environment: Windows 10, Node 22.14.0, NPM 11.4.1

Activity

Sainan

Sainan commented on May 23, 2025

@Sainan
ContributorAuthor

Ah wait, interesting, if I do npx tsgo --noEmit, it does work. So, the npm exec abstraction works, but npm exec itself does not. What?

changed the title [-]native-preview does not work on Windows 10[/-] [+]`npm exec -- tsgo` does not work[/+] on May 23, 2025
jakebailey

jakebailey commented on May 23, 2025

@jakebailey
Member

Can you pass --loglevel verbose?

Sainan

Sainan commented on May 23, 2025

@Sainan
ContributorAuthor

And now I can't reproduce it at all anymore. Maybe an NPM bug. idk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jakebailey@Sainan

        Issue actions

          `npm exec -- tsgo` does not work · Issue #922 · microsoft/typescript-go