'mac NPM config resets everytime I restart terminal

I am using a mac and I am trying to remove proxy settings in npm configs. I used npm config delete key proxy and npm config rm proxy to try and remove the proxy from config but if doesn't work.

I went into .npmrc file to delete the variable proxy manually but every time I restart the terminal it will add the variable back into the .npmrc file.

Are there anyways to make it gone once and for all?

npm


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source