1# Installing hpm-cli Tool<a name="EN-US_TOPIC_0000001051770836"></a> 2 3- [Installing Node.js and hpm](#section106591616205311) 4- [\(Optional\) Configuring hpm](#section71821165412) 5- [Downloading OpenHarmony Code](#section102338221707) 6 7To develop a bundle, you first need to install the HarmonyOS Package Manager \(hpm\), a cross-platform command line tool developed based on Node.js. To run the hpm, you need to install Node.js, and then install the hpm using the Node Package Manager \(npm\). 8 9## Installing Node.js and hpm<a name="section106591616205311"></a> 10 111. Install **Node.js**. 12 13 Download **Node.js** from its official website and install it on your local PC. 14 15 You are advised to install [Node.js](https://nodejs.org/) 12.x \(including npm 6.14.4\) or a later version \(12.13.0 or later is recommended\). 16 172. Install the **hpm-cli** tool using **npm** delivered with **Node.js**. Run the following command: 18 19 ``` 20 npm install -g @ohos/hpm-cli 21 ``` 22 233. Run the following command to check whether the installation is successful. If an hpm version is displayed, the installation is successful. 24 25 ``` 26 hpm -V or hpm --version 27 ``` 28 294. \(Optional\) Run the following command to upgrade the hpm version if needed: 30 31 ``` 32 npm update -g @ohos/hpm-cli 33 ``` 34 35 36## \(Optional\) Configuring hpm<a name="section71821165412"></a> 37 38After the **hpm-cli** tool is installed, run the following command to view the hpm configuration if you need to modify the configuration information, such as proxy and shell: 39 40``` 41hpm config 42``` 43 44Default hpm configurations are displayed upon successful command execution. You can modify the default configurations as required. The following lists common hpm configurations: 45 46``` 47registry = https://hpm.harmonyos.com 48### login Settings 49# loginUser = invitation_code 50 51#### Path Settings 52shellPath = C:\WINDOWS\System32\cmd.exe 53# shellPath = C:\Program Files\Git\bin\sh.exe 54# globalRepo = C:\Users\username\.hpm\global 55 56#### Network Settings 57# no_proxy = *.server.com 58# http_proxy = http://user:pwd@proxy_server:port 59# https_proxy = http://user:pwd@proxy_server:port 60# strictSsl = true 61 62#### Other Settings 63# privateSupport = true|false 64# ignoreBundles = @ohos/llvm,@ohos/gn, 65# OSPlatform = Auto|linux|darwin|win32 66``` 67 68For details about **hpm-cli** commands, see [HPM Commands](bundles-guide-overview.md). 69 70## Downloading OpenHarmony Code<a name="section102338221707"></a> 71 72For details, see [Source Code Acquisition](../get-code/sourcecode-acquire.md). 73 74