Skip to content

MsBuild.TypeScript uses Node 32bit by default #32733

Closed

Description

I tried to use MSBuild.Typescript and discover that it uses only 32bit version of Node.
This is written in Microsoft.TypeScript.targets
<NodePath Condition="'$(OS)' == 'Windows_NT' AND Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\NodeJs\\node.exe')">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\NodeJs</NodePath>
But in this path we have win-x64 directory with 64bit version node.exe.
Is it correct? When I use node from cmd I use 64bit Node

Activity

  1. RyanCavanaugh commented on Aug 6, 2019

    @RyanCavanaugh
    Member

    Correct. 32-bit Node tends to be faster than 64-bit.

  2. SlavkaOnline commented on Aug 7, 2019

    @SlavkaOnline
    Author

    Correct. 32-bit Node tends to be faster than 64-bit.

    So could you help to resolve my problem?
    I can build my project on the local environment (my PC) but when I try to build my project on the build server (with windows server 2008) I have a problem with memory for node. After use google, I discovered that if I set NODE_OPTIONS=--max_old_space_size=4096 and use 64bit Node it resolve my problem. But it all seems very strange to me.

  3. RyanCavanaugh commented on Aug 7, 2019

    @RyanCavanaugh
    Member

    It sounds like you were able to find the solution. Is there anything else we can help clarify?

  4. SlavkaOnline commented on Aug 7, 2019

    @SlavkaOnline
    Author

    It sounds like you were able to find the solution. Is there anything else we can help clarify?

    I think in the future I will use NPM package for tsc.js. That's all, thank.

  5. RyanCavanaugh commented on Aug 7, 2019

    @RyanCavanaugh
    Member

    That's a good plan. Thanks!

  6. locked as resolved and limited conversation to collaborators on Oct 21, 2025
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

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions