- find where npm is in:
whereis npm
- find where global npmrc is in:
npm config ls -l
- modify global npmrc
cp .npmrc /global/npmrc
- using root user to execute
sudo pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
sudo pip config set global.trusted-host global.trusted-host