Symptom
During installation of the Axios library, error 404 is reported when the npm install @ohos/axios --save command is run.
Solution
Error 404 indicates that the corresponding resource file cannot be found. The mirrored environment or ohpm proxy may be incorrectly configured.
ohpm config set registry https://repo.harmonyos.com/ohpm/
ohpm install @ohos/axios
For details about how to configure the ohpm proxy, see Setting Up the ohpm Proxy.