How to fix eacces permission denied errors with npm when installing a global package using Ubuntu. An easy fix is to install using sudo but this isn't recommended as this gives permissions to scripts that can execute anything it wants which can be harmful. Instead use the recommended fix from npm: 🤍docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally 🤍docs.npmjs.com/downloading-and-installing-node-js-and-npm Solution: This involves installing nvm 🤍github.com/nvm-sh/nvm and executing the command: nvm install node This will reinstall npm and node using the correct permissions and avoids the eacces permission errors. Once installed can continue as normal. Like anything else: Always keep a back up before making these changes for an easy revert :) 0:00 - Eacces error with global npm 0:42 - Installing NVM 1:45 - Fix: Installing npm and node with nvm 2:04 - Test npm install global package –––––––––––––––––––––––––––––– Track: For the People — Artificial.Music [Audio Library Release] Music provided by Audio Library Plus Watch: 🤍youtu.be/3rSaa3upylw Free Download / Stream: 🤍alplus.io/people ––––––––––––––––––––––––––––––
You are God.
All hail to you!!
Wonderful video, I had nvm on windows but I have a Mac now and I forgot about NVM.
still same error
nvm install node solved my problem. I was installing older node version. Thanks.
thanks bro it is working very helpful video
Really helpful, thanks a lot!
what if you don't have nvm
tks!!! this video save my life hahaha... all ok in Mac OS Big Sur
It worked thx!!
I searhed everywhere but got the solution here. AWESOMEEEEEEEEE 🖖👌👌👌
Thanks friend, worked like a charm.
thank you! great video
Amazing video!! this is what I've been looking for.