Tuesday , February 4 2025
Vs Code

Missing write access to /usr/local/lib/node_modules when installing Jshint for Vscode

The problem is described in the topic.
Below is a screenshot of this error:

Missing write access to /usr/local/lib/node_modules

Here is the solution, you just need to change the permissions:

sudo chown -R $USER /usr/local/lib/node_modules

After that npm install -g jshint and any npm install works fine.

About iryna

I'm Iryna, a web developer from Ukraine with a decade of experience solving complex technical challenges in the world of freelance. Throughout my career, I've worked on everything from troubleshooting server-side issues and optimizing website performance to enhancing user interfaces. On this blog, I share detailed solutions to the technical problems I’ve encountered and methods that have worked best for me. In addition to my technical expertise, I’m also passionate about digital drawing. I hope the tutorials and insights I provide here will help both fellow developers and creatives alike in their own projects.

One comment

  1. Thanks for help. It works!

Leave a Reply

Your email address will not be published. Required fields are marked *