npmrc is the file type - it should not be .txt.
If you are using windows - check the Type in windows explorer, this should be NPMRC File.
To create .npmrc file, open a notepad , enter registry and proxy details, click on File Save As
in save prompt - enter file name as --> .npmrc and
Save as T...