1e41f4b71Sopenharmony_ci# Configuring the Proxy 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci### Configuring the Python Proxy 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ci1. Create a proxy configuration file. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci ``` 9e41f4b71Sopenharmony_ci mkdir ~/.pipvim ~/.pip/pip.conf 10e41f4b71Sopenharmony_ci ``` 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci2. Add the following proxy information to the file, save the file, and exit: 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci ``` 15e41f4b71Sopenharmony_ci [global] 16e41f4b71Sopenharmony_ci index-url = http://Proxy URL 17e41f4b71Sopenharmony_ci trusted-host = Trusted image path 18e41f4b71Sopenharmony_ci timeout = 120 19e41f4b71Sopenharmony_ci ``` 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci### Configuring the npm Proxy 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci1. Create a proxy configuration file. 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci ``` 27e41f4b71Sopenharmony_ci vim ~/.npmrc 28e41f4b71Sopenharmony_ci ``` 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci2. Add the following proxy information to the file, save the file, and exit: 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci ``` 33e41f4b71Sopenharmony_ci Registry=http://Proxy URL 34e41f4b71Sopenharmony_ci strict-ssl=false 35e41f4b71Sopenharmony_ci ``` 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci3. Add the following content to the **.bashrc** file, save the file, and exit: 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci ``` 40e41f4b71Sopenharmony_ci export NPM_REGISTRY=http://Proxy URL 41e41f4b71Sopenharmony_ci source .bashrc 42e41f4b71Sopenharmony_ci ``` 43