Basic Node js express 4 build webapplication to exe issues

mukilan mws 1 Reputation point

Hi Guys,
I am a newcomer to Visual Studio. I know only Nodejs. So, I try to create an EXE file for the node.js application. And I try to build but it's not working, it shows a Build succeeded message then I go to refer to the application folder I can't get anything. I tried to build the last couple of weeks. I can't get a result. Plz anyone support me and give a suggestion to build a node.js EXE file.

Thank you


Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,687 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ryan Hill 26,241 Reputation points Microsoft Employee

    Hi @mukilan mws ,

    When it comes to NodeJS, you don't create an exe. The Node runtime will start your .js file on a web server instance and expose the port so that it can respond to request. To determine what that start file is, it's set in your package.json file under "main:" or "start:". In Visual Studio NodeJS project, this is done by the <StartupFile /> and <StartWebBrowser /> element tags, VS 2019 and later. When it comes to build, I see that your codebase is js, so there isn't a project build per se, unless if you have to your package.json to copy your code to a /dist type of folder.

    I would encourage you to check out to become more familiar with Javascript projects in Visual Studio.

    0 comments No comments

  2. PengGe-MSFT 3,336 Reputation points

    Hi @mukilan mws

    I found this open source tool to create a single executable out of your node.js apps, this may meet your needs.

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments