-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operation not permitted #977
Comments
Hi. You should move the entire project directory outside of the Documents directory |
Worked for me!! kudos man!! |
This worked for me too :) I tried adding access to watman executable via System Preferences but couldnt manage to do it. |
For me it worked with moving the project directory to Users/myuser/ |
Yep have to be right under Users/myuser/ directory. If you placed them under other folders it still not working for example Users/myuser/Download/ |
Просто перенес в корень, и то-же сработало |
Is there a permanent fix for this? Moving my project to another folder is not a fix. |
No, it's permanent. System forbid access to Documents folder. It's security issue otherwise. Maybe there is a possibility to give a permissions, but I wouldn't do that |
Is this something that has been changed recently or just specific for M1 chips because i have always been working on react native apps and using it inside my documents folder but just today, It appeared that i got that error too? |
So i have factory reseted my macbook and i still have the same issue where i have to put it into |
After a bit more research i found this issue where it has a temp fix #1030 (comment) |
It didn't work until I allowed sh to access the disk. |
This is dumb; but it worked |
Not sure why, but using iTerm instead of Terminal solved the issue for me. |
We can resolved this when we put our project outside from those folder Desktop,Download and Document then run npm start It will be work thanks |
work for me . thanks |
May I ask how do you think out this solution, cause it really bother me a lot |
I had my project inside Documents folder too and was receiving the same error as the OP when I ran As mentioned by someone else, it happens due to macOS making Documents directory private by default. To fix the issue, I did the following:
Hope it helps others. |
@SufianBabri Ok, if you filling good about allowing permissions which are not supposed to be allowed, that could be a solution. As for me moving the project somewhere outside of document folder is better idea. |
brew upgrade watchman fixed my issue |
First run |
perfect bro! this is the real fix!! |
FIXED! |
This works. |
Works for me! |
thanks man, by the way how did u find it? |
This worked perfectly for me, thank you. |
this worked for me. thanks. |
Move the project directory outside the Documents directory was the solution for me ( |
works perfectly 🚀 |
Running |
sometime watchman is not able to access your folder where your actual project is located so for that reason it shows Operation not permitted to resolve this issue
|
Wow this solutions worked for me great |
THANK YOU! |
|
If you are using mac go to setting > Privacy & Setting > Full Disk Access > Allow Watchman and Terminals |
On my mac, the fix was |
The perfect fix! |
You saved my time. I moved the project from Thanks |
I love you! |
A majestic solution! |
Thanks for this! |
This worked for me. Thanks |
Thanks, worked for me. |
this worked to me, tks |
This is easiest fix |
why? |
Cause Documents folder has some permission restrictions for security reasons by default |
Bro you saved me I updated homebrew and suddenly this issue came but your solution worked as a savior. |
My project work when i move my project outside from desktop,downlaod and document folder. |
Works great thanks, no need to move the project for me! |
Try to build react native clear project and getting watchman error:
jest-haste-map: Watchman crawl failed. Retrying once with node crawler. Usually this happens when watchman isn't running. Create an empty
.watchmanconfigfile in your project's root folder or initialize a git or hg repository in your project. Error: Watchman error: std::__1::system_error: open: /Users/sliokkory/Documents/myteam/star: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.
Watchman -v: 2021.11.15.00
MacOs: 12.0.1 Monterey (m1)
The text was updated successfully, but these errors were encountered: