目录

Common ohpm Command Error Codes

00617101 Failed to Obtain the Package Information

Error Message

Fetch Pkg Info Failed.

Symptom

Failed to obtain the package information.

Possible Causes

The repository address is not configured.

Solution

Configure the registry field in the .ohpmrc file or run ohpm config set registry https://ohpm.openharmony.cn/ohpm/ to configure the repository address.

00617102 Repository Check Failed

Error Message

Check Registry Failed.

Symptom

Failed to check the repository.

Possible Causes

The registry parameter is incorrectly configured for the ohpm info or ohpm install command.

Solution

Set registry to the address of the central repository or private repository.

00608003 File Reading Error

Error Message

File Read Error.

Symptom

An error occurs when the file is read.

Possible Causes

The file (such as a configuration file) fails to be read.

Solution

Check if the file is in use, then try reading it again.

00625003 File Does Not Exist

Error Message

File Not Exist.

Symptom

The file does not exist.

Possible Causes

The file to be read does not exist.

Solution

Check whether the file exists, then try again.

00631002 Repository Request Failed

Error Message

Registry Request Error.

Symptom

The repository request failed.

Possible Causes

The publish_registry parameter is incorrectly configured for the ohpm publish or ohpm dist-tags command.

Solution

Set registry to the address of the central repository or private repository.

00640001 System Error

Error Message

System Error.

Symptom

A system error occurs.

Possible Causes

A system error occurs, for example, memory error.

Solution

Check the log for error details to identify the root cause.

00670002 Case Mismatch in Path Names

Error Message

Path Case Sensitivity Error.

Symptom

Case mismatch in path names.

Possible Causes

The file path configured in the project does not match the actual file path in letter case.

Solution

Modify the configured file path in the project to match the actual file path. Alternatively, set case_sensitive_check to false in the .ohpmrc file to disable case sensitivity check for file paths. For details, see case_sensitive_check.