openharmony 鸿蒙 quickstart-pkg-common-proxy

2022-12-05 浏览 (728)

Configuring the Proxy

Configuring the Python Proxy

  1. Create a proxy configuration file.

    mkdir ~/.pip
    vim ~/.pip/pip.conf
    
  2. Add the following proxy information to the file, save the file, and exit:

    [global]
    index-url = http:// Proxy URL
    trusted-host = Trusted image path
    timeout = 120
    

Configuring the npm Proxy

  1. Create a proxy configuration file.

    vim ~/.npmrc
    
  2. Add the following proxy information to the file, save the file, and exit:

    registry=http:// Proxy URL
    strict-ssl=false
    
  3. Add the following content to the .bashrc file, save the file, and exit:

    export NPM_REGISTRY=http:// Proxy URL
    source .bashrc
    

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Getting Started

harmony 鸿蒙Build Form Factors

harmony 鸿蒙Getting Started with the Standard System with Hi3516 (IDE Mode)

harmony 鸿蒙Getting Started with the Standard System with Hi3516 (CLI Mode)

harmony 鸿蒙Hi3516 Development Board

harmony 鸿蒙Hi3861 Development Board

harmony 鸿蒙RK3568 Development Board

harmony 鸿蒙Building Source Code

harmony 鸿蒙Burning an Image

harmony 鸿蒙Writing a Hello World Program

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/d6463b67491e4b70922d704eb2675455