1# Usage of Third- and Fourth-Party Libraries 2 3## What does the following error message mean: "Stage model module... does not support including OpenHarmony npm packages or modules in FA model. OpenHarmony build tasks will not be executed, and OpenHarmony resources will not be packed." 4 5Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 6 7The third- and fourth-party libraries are not yet compatible with the stage model of API version 9 and cannot be used. 8 9## Can I transfer project-level dependencies? 10 11Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9 12 13For example, if project A depends on project B and project B depends on project C, can project A directly use the APIs provided by project C? 14 15No. Project A cannot directly use the APIs provided by project C. The project packing tool NPM does not support dependency transfer. To use the APIs provided by project C, you can add the dependency of project C to project A. 16 17## How do I obtain available third-party libraries? 18 19Applicable to: OpenHarmony SDK 3.2.6.5, stage model of API version 9 20 21For details, see [Third-Party Components That Can Be Directly Used on OpenHarmony](https://gitee.com/openharmony-sig/third_party_app_libs). 22 23## Which third-party libraries are related to network requests? 24 25Applicable to: OpenHarmony SDK 3.2.6.5, stage model of API version 9 26 27The [Axios](https://gitee.com/openharmony-sig/axios) library is related to network requests. 28 29## How do I use NPM to import third- and fourth-party libraries? 30 31Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 32- Method 1: 33 1. Open the **Terminal** window and run the following command to go to the **entry** directory: 34 35 ``` 36 cd entry 37 ``` 38 2. Run the following command to install a third-party package, for example, **dayjs**: 39 40 ``` 41 npm install dayjs --save 42 ``` 43 3. Add the following statement in the .js file to import the package: 44 45 ``` 46 import dayjs from 'dayjs'; 47 ``` 48 49- Method 2: 50 1. Enter the **entry** directory of the project and open the **package.json** file. 51 2. Write the third-party NPM package to be installed (for example, **dayjs**) in the **package.json** file. 52 53 ``` 54 { 55 "dependencies": { 56 "dayjs": "^1.10.4", 57 } 58 } 59 ``` 60 3. Open the **Terminal** window and run the following command to go to the **entry** directory: 61 62 ``` 63 cd entry 64 ``` 65 4. Run the following command to install NPM: 66 67 ``` 68 npm install 69 ``` 70 5. Add the following statement in the .js file to import the package: 71 72 ``` 73 import dayjs from 'dayjs'; 74 ``` 75