Configuring the Proxy
Configuring the Python Proxy
-
Create a proxy configuration file.
mkdir ~/.pip vim ~/.pip/pip.conf -
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
-
Create a proxy configuration file.
vim ~/.npmrc -
Add the following proxy information to the file, save the file, and exit:
registry=http:// Proxy URL strict-ssl=false -
Add the following content to the .bashrc file, save the file, and exit:
export NPM_REGISTRY=http:// Proxy URL source .bashrc