All Products
Search
Document Center

Alibaba Cloud SDK:Build a Node.js development environment on Windows

Last Updated:Jun 23, 2026

Set up a Node.js development environment on Windows by using Visual Studio Code (VS Code).

  1. Go to the VS Code official website and click Download for Windows to download the installation file.

    image

  2. Double-click the downloaded file, such as VSCodeUserSetup-x64-1.89.1.exe, and follow the installation wizard to install VS Code.

    Important

    In the Select Additional Tasks step, you must select Add to PATH (requires shell restart).

  3. Open VS Code, click the Extensions icon in the left-side navigation bar or press Ctrl+Shift+X to search for the following extensions:

    1. Node.js Extension Pack: a collection of common tools for Node.js development.

    2. JavaScript (ES6) code snippets: provides snippets for ES6.

    3. Code Runner: runs code for programming languages such as Node.js, Python, C++, Java, PHP, and Go directly in the editor.

    4. Alibaba Cloud API Toolkit (optional): streamlines development, debugging, and deployment between your local environment and Alibaba Cloud services. For more information, see Use Alibaba Cloud API Toolkit in VS Code.

    image

  4. Create a Node.js project.

    In the VS Code menu bar, choose File > Open Folder, and then create and select a project folder. In this example, a folder named javascriptProjects is used.

  5. Click the New File... icon to the right of the project name and enter a file name such as helloaliyun.js. Enter console.log('hello aliyun!') in the right-side editor.

    image

  6. Run the code.

    1. Select the file to run, such as helloaliyun.js. Click the Run and Debug icon in the left-side navigation bar or press Ctrl+Shift+D. Click Run and Debug, and then select Node.js from the Select debugger drop-down list.

      image

    2. If you have installed the Code Runner extension, right-click anywhere in the editor and select Run Code.

      image

    3. On the TERMINAL tab, run the code by using the node command. In this example, run node .\helloaliyun.js.

      image

  7. Verify that the development environment is set up.

    On the DEBUG CONSOLE tab, check whether hello aliyun! is returned. If the output appears, the Node.js development environment is ready.

    image