Loading...

King Subash | Live Life King Size

How to fix the "Missing write access" error when using npm

Tech Blog
Missing write access
npm
npm error
: King Subash : 19th Feb 2021

For the first time when you try to install a package globally using npm, using the syntax "npm install -g <package>" on a Linux or Mac PC, you might get error like :

Missing write access to /usr/local/lib/node_modules
Wireframe | king Subash

This is actually a permission error, which means you don’t have write access to that folder. Use below command to solve the issue.

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

What do you think about this simple preloader transition? Let me know

About Author
King Subash | Live Life King Size
King Subash

I am a Full Stack Web Developer. 10 Years 7 Months of work experience in web development with a Master's Degree in Computer Application (MCA). Hands-on experience on HTML, CSS, PHP, MySQL, Codeigniter, javascript, React JS, jquery, ajax, JSON, LAMP administration, twitter Boostrap, Material CSS, Materializecss. Strong knowledge of Web application and Web servers.