> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>
> The APIs of API version 9 is of the Canary version and are for trial use only. The API call may be unstable.
> The APIs of API version 9 are of the canary version and are for trial use only. The API call may be unstable.
You can search for common development resources on [DevEco Marketplace](https://repo.harmonyos.com) and import required resources to your projects through dependencies. If you cannot find the desired resources there, develop the resources on your own and publish them in the form of an HPM Part. To develop HPM Parts, install the hpm-cli tool first.
> You are advised to perform the following operations on Ubuntu 18.04 or later.
...
...
@@ -17,9 +18,10 @@ The hpm-cli tool is developed based on Node.js. Therefore, you must install Node
### Installing Node.js and hpm-cli
1. Install Node.js.
Download Node.js from its official website and install it on your local PC.
You are advised to install the latest LTS version (not earlier than 12.x) of [Node.js](https://nodejs.org/).
Download Node.js from its official website and install it on your local PC.
You are advised to install the latest LTS version (not earlier than 12.x) of [Node.js](https://nodejs.org/).
2. Install the hpm-cli tool using **npm** delivered with **Node.js**. Run the following command:
...
...
@@ -49,7 +51,7 @@ After hpm-cli is installed, run the following command to view the hpm configurat
hpm config
```
The default hpm configuration is displayed upon successful command execution. You can modify the default configuration as required. The following lists the common hpm configuration:
The default hpm configuration is displayed upon successful command execution. You can modify the default configuration as required. The following lists the common hpm configuration:
```
registry = https://hpm.harmonyos.com
...
...
@@ -88,7 +90,8 @@ You can create an HPM Part by using a template or define an existing project as
> -In the preceding command, **default** indicates that the **default** template is used. You can use another template such as **simple** or **dist**.
>
> In the preceding command, **default** indicates that the **default** template is used. You can use another template such as **simple** or **dist**.
The generated directory structure is as follows:
...
...
@@ -103,7 +106,7 @@ You can create an HPM Part by using a template or define an existing project as
└── Makefile # Build description file (example)
└── README.md # Readme file
```
```
2. Write the code and build script of the HPM Part.
...
...
@@ -120,7 +123,7 @@ You can create an HPM Part by using a template or define an existing project as
The hpm-cli tool provides a few default templates. More templates are available on [DevEco Marketplace](https://repo.harmonyos.com). You can run the **hpm search -t template** command to search for a template stored on [DevEco Marketplace](https://repo.harmonyos.com).