question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

com.github.facebook.watchman.plist for write: Permission denied

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

15reactions
olsiocommented, Mar 11, 2017

@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.

15reactions
brianarpiecommented, Feb 5, 2017

@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:

rm ~/Library/LaunchAgents
mkdir ~/Library/LaunchAgents

cheers

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found