Preparing a Development Environment

You need to install DevEco Studio regardless of whether you use the Java or JavaScript language. However, if you use the JavaScript language, you also need to install Node.js.

Downloading and Installing Node.js

Node.js is an open-source and cross-platform environment required for running JavaScript.

  1. Sign in to Node.js, select the LTS version, and download and install the suitable software package.

    说明

    If you do not install Node.js in the default directory, you need to manually add the actual installation directory to the system environment variable Path.

  2. Check whether the installation is successful.

    Open the CLI and run the b>node -v command. If the Node.js version number is displayed, Node.js is installed successfully.

Installing and Configuring HUAWEI DevEco Studio

Environment Requirements

Ensure that your computer meets the following requirements:

  • Operating system: Windows 10 (64-bit) or macOS 10.14, 10.15, or 11.2.2
  • Memory: 8 GB or above
  • Hard disk: 100 GB or above
  • Resolution: 1280 x 800 pixels or above

Procedure

  1. Download and install DevEco Studio. For details, please refer to Downloading and Installing Software.
  2. Configure DevEco Studio, including setting the network proxy and downloading the HarmonyOS SDK. For details, please refer to Setting Up the Development Environment.
  3. Run a Hello World project to verify the environment configuration.
  4. Create a project.
    • If you use Java for development, select the ability template Empty Ability(Java).
    • If you use JavaScript for development, select the ability template Empty Ability(JS).
搜索
请输入您想要搜索的关键词