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
► 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/
► 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
NVM GitHub: https://github.com/nvm-sh/nvm
Node Web Installer: https://webinstall.dev/node/
📚 LBRY Podcast: https://open.lbry.com/@TechOverTea:3
🎥 YouTube Podcast: https://www.youtube.com/c/TechOverTea
📺 BitTube: https://bittube.tv/profile/BrodieRobertson
📺 BitChute: https://www.bitchute.com/channel/agraFPUvUDeK/
🎤 Discord: https://discord.gg/PkMRVn9
🐦 Twitter: https://twitter.com/BrodieOnYoutube
🌐 Mastodon: https://mstdn.social/@BrodieOnLinux
✉️ Telegram: https://t.me/BrodieRobertson
🖥️ GitHub: https://github.com/BrodieRobertson
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.
About Brodie Robertson
For all general enquiries feel free to contact me through any social media service listed below, If you'd like to longer form something longer form like fan mail or you have a video suggestion, feel free to send me an email.