Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

.npmrc permission denied every time I open the terminal

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.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thanks!

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading