OS X permission denied for /usr/local/lib
It sounds like the folder isn't world executable. Try:
sudo chmod 755 /usr/local/lib
and then you should be able to use ls or anything else in the folder (still won't allow you to write but your user account shouldn't be able to do that anyway)
macOS - Permission denied @ apply2files - /usr/local/lib/node_modules/expo-cli/node_modules/extglob/lib/.DS_Store?
You can change owner by :
sudo chown -R ${LOGNAME}:staff /usr/local/lib/node_modules
Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
Change your file permissions... Like this
First check who owns the directory
ls -la /usr/local/lib/node_modules
it is denying access because the node_module folder is owned by root
drwxr-xr-x 3 root wheel 102 Jun 24 23:24 node_modules
so this needs to be changed by changing root to your user but first run command below to check your current user How do I get the name of the active user via the command line in OS X?
id -un
OR whoami
Then change owner
sudo chown -R [owner]:[owner] /usr/local/lib/node_modules
OR
sudo chown -R ownerName: /usr/local/lib/node_modules
OR
sudo chown -R $USER /usr/local/lib/node_modules
NPM Mac OS error: EACCES: permission denied, access '/usr/local/lib/node_modules'
try to execute in super user mode(root user) like this
sudo npm install -g gatsby-cli
can't chown /usr/local for homebrew in Mac OS X 10.13 High Sierra
The problem kept occurring... after digging deeper I found that only uninstalling Homebrew and then re-installing it solved this issue.
Uninstalling will remove all your brew packages, you can save the output of brew list
in a file first, to have a record of what packages were installed.
Uninstall Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Then re-install it:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Homebrew - Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
As written here https://flaviocopes.com/homebrew-fix-permission-denied-apply2files/ ,
if you had recently deleted Docker, you have to manually recreate the Docker folder:
mkdir -p /Applications/Docker.app/Contents/Resources/cli-plugins
Then run
brew cleanup
You should have fixed the issue!
After that, you can delete the Docker application inside the Application folder
How to fix homebrew permissions?
I was able to solve the problem by using chown
on the folder:
sudo chown -R "$USER":admin /usr/local
Also you'll (most probably) have to do the same on /Library/Caches/Homebrew
:
sudo chown -R "$USER":admin /Library/Caches/Homebrew
Apparently I had used sudo
before in a way that altered my folder permission on /usr/local
,
from here on forward all installations with brew have proven to be successful.
This answer comes courtesy of gitHub's homebrew issue tracker
npm install permission denied (macOS)
Check permissions of your project root with ls -l /Users/Marc/Desktop/Dev/masterclass/
. If the owner is not $USER
, delete your node_modules
directory, try changing the owner of that directory instead and run npm install
again.
cd /Users/Marc/Desktop/Dev
rm -rf ./masterclass/node_mdoules/
chown -R $USER ./masterclass/
cd masterclass
npm install
Related Topics
Why I Am Not Getting Signal Sigkill on Kill -9 Command in Bash
Writing a Syscall to Count Context Switches of a Process
You Don't Have Permission Error in Apache in Centos
How to Get Yesterday and Day Before Yesterday in Linux
Rodbc Not Recognizing My Odbc Settings
Externally Disabling Signals for a Linux Program
Configure "-Prefix" Option for Cross Compiling
Find Files Modified Over 1 Hour Ago But Less Than 3 Days
Sudo Apt-Get Update Fail on Ubuntu 17.04
How to Curl Using Ipv6 Address
How to Redirect Http to Https Using Gcp Load Balancer
Tools Required to Learn Arm on Linux X86 Platform
Developing a Web App with Mono (Opensource .Net) Any Examples