npm

Yarn and npm uses the same config file

/usr/etc/npmrc

registry=<registry>
strict-ssl=true

Read out config:

npm config list -l

Find locations:

Edit either directly or via
npm config edit -e code -L <global|user|project>

User

$HOME/.npmrc
npm config edit -e code -L user

Projects

./.npmrc
npm config edit -e code -L project

Global

$PREFIX/etc/npmrc
npm config edit -e code -L global