0

I've been getting this annoying error everytime I open a new terminal window or tab saying:

bash: /.npmrc: Permission denied

And that is it, I have been trying to find a solution (unsuccessfully) for some time now. I've found that people had issue with other files but not with .npmrc. I'm running Ubuntu 22.04 if it is of any help.

Thanks!

  • Which command in your bash startup files produces the error message? Also post how you configured your Terminal to start bash. – user1934428 Jul 12 '23 at 09:02

1 Answers1

2

Did you try sudo chown -Rv ${USER}:${USER} /.npmrc ?

Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74