NPM Permissions On Linux Are Broken: Here's The Fix
Brodie Robertson | Linux Tips & Tricks
If you try to install a package globally on Linux through NPM you'll see a very common error message saying you don't have permission to access the folder, this is caused by your package manager and the way npm links it's binaries. When it's installed with sudo it requires sudo for it's operations which is really dangerous for installing applications like this, so today I'm going to show you a couple of simple fixes to deal with this such as nvm, webi and a brief mention of npx.
==========Support The Channel========== ► Patreon: https://www.patreon.com/brodierobertson
► Paypal: https://www.paypal.me/BrodieRobertsonVideo
► Channel Membership: https://www.youtube.com/channel/UCld68syR8Wi-GY_n4CaoJGA/join
► SubscribeStar: https://www.subscribestar.com/brodierobertson
► Liberapay: https://liberapay.com/BrodieRobertson/
► Locals: https://brodierobetson.locals.com/
==========Affiliate Links========== ► Amazon USA: https://amzn.to/3d5gykF
► Download Brave: https://brave.com/bro479
► Join LBRY: https://lbry.tv/$/invite/@BrodieRobertson:5
► Join Minds: https://www.minds.com/register?referrer=brodierobertson
==========Resources========== NVM GitHub: https://github.com/nvm-sh/nvm
Node Web Installer: https://webinstall.dev/node/
NPX: https://www.npmjs.com/package/npx
=========Video Platforms========== 📚 LBRY Podcast: https://open.lbry.com/@TechOverTea:3
🎥 YouTube Podcast: https://www.youtube.com/c/TechOverTea
🎥 LBRY: https://open.lbry.com/@BrodieRobertson#5
📺 BitTube: https://bittube.tv/profile/BrodieRobertson
📺 BitChute: https://www.bitchute.com/channel/agraFPUvUDeK/
==========Social Media========== 🎤 Discord: https://discord.gg/PkMRVn9
🐦 Twitter: https://twitter.com/BrodieOnYoutube
🌐 Mastodon: https://mstdn.social/@BrodieOnLinux
🧠 Minds: https://www.minds.com/brodierobertson/
✉️ Telegram: https://t.me/BrodieRobertson
==========My Repos========== 🖥️ GitHub: https://github.com/BrodieRobertson
==========Credits========== 🎨 Channel Art: All my art has was created by Supercozman https://twitter.com/Supercozman https://www.instagram.com/supercozman_draws/
🎵 Ending music Music from https://filmmusic.io "Basic Implosion" by Kevin MacLeod (https://incompetech.com) License: CC BY (http://creativecommons.org/licenses/by/4.0/)
DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase we may receive a small commission or other compensation.
I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and related sites. ... https://www.youtube.com/watch?v=qlVciUJCgAo
174351412 Bytes