Fix NPM EACCES permission denied errors (recommended fix) Global Package install

preview_player
Показать описание
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.

Solution:
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
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

From a brazilian guy that do not knows much about Linux: thank you very much bro :)

gabrielmenezes
Автор

Thank you so much !!!! p.s. love the background music :)

TheCedillo
Автор

I searhed everywhere but got the solution here. 🖖👌👌👌

imsidrock
Автор

nvm install node solved my problem. I was installing older node version. Thanks.

samnayakawadi
Автор

istg I love you so much, saved me so much stress you have no idea

rhealisa
Автор

Amazing video!! this is what I've been looking for.

FiveFourThor
Автор

nvm -v didn't work for me... "bash: nvm: command not found"

supbra
Автор

Thanks a lot!!! after 4 hours, I could run nmp!

syberiaok
Автор

Wonderful video, I had nvm on windows but I have a Mac now and I forgot about NVM.

eduardoaviles
Автор

thanks bro it is working very helpful video

suryansh
Автор

tks!!! this video save my life hahaha... all ok in Mac OS Big Sur

andrearantes
join shbcf.ru