com.github.facebook.watchman.plist for write: Permission denied
See original GitHub issueI am studying react-native.And I follow the tutorials on the website.When I execute “react-native run-ios”. It happens some error messages.
Looking for JS files in
/Users/Mapple/Developer/React-native-workspace/HelloWorld
[19:16:32] <START> Building Dependency Graph
[19:16:32] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot
React packager ready.
2016-07-30T19:16:32,265: [cli] Failed to open /Users/Mapple/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied
2016-07-30T19:16:32,265: [cli] Failed to open /Users/Mapple/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied
Watchman: watchman--no-pretty get-sockname returned with exit code null 2016-07-30T19:16:32,265: [cli] Failed to open /Users/Mapple/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied
ERROR watchman--no-pretty get-sockname returned with exit code null 2016-07-30T19:16:32,265: [cli] Failed to open /Users/Mapple/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied
Error: watchman--no-pretty get-sockname returned with exit code null 2016-07-30T19:16:32,265: [cli] Failed to open /Users/Mapple/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied
at ChildProcess.<anonymous> (/Users/Mapple/Developer/React-native-workspace/HelloWorld/node_modules/fb-watchman/index.js:198:18)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)
I find there is no file-com.github.facebook.watchman.plist in the /Users/Mapple/Library/LaunchAgents. I tried a variety of ways, but it does not play a role。
Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top Results From Across the Web
watchman.plist permission denied when running a react ...
I tried to chmod com.github.facebook.watchman.plist but actually there's no such file there. Maybe I should change the path of the file? Other ...
Read more >Troubleshooting | Watchman - Meta Open Source
There was an issue that was the result of umask affecting the permissions of the launchd plist file that Watchman uses to set...
Read more >com.github.facebook.watchman.plist for write - 掘金
修改完成后,我删除了项目下的build文件夹,执行yarn run reset,再执行yarn run ios。项目运行成功。
Read more >com.github.facebook.watchman.plist for write ... - 简书
模拟器failed to load...同时终端报错:com.github.facebook.watchman.plist for write: Permission denied。 多数原因是由于LaunchAgents文件夹当前 ...
Read more >Library/LaunchAgents/com.github.facebook.watchman.plist for ...
Coding example for the question Watchman: Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@brianarpie deleting the directory might delete other LaunchAgents a better solution would be to update the user:
sudo chown -R $(whoami):staff ~/Library/LaunchAgents
In my case the offending party was LastPass, I raised a bug with them, the installer seems to create the directory as root.
@anil826 my guess is ~/Library/LaunchAgents is still owned by root. You can resolve this by deleting the directory and creating it as the current user. The following worked for me:
cheers