2016-07-30 26 views
0

我正在學習react-native.And並遵循網站上的教程。當我執行「react-native run-ios 」。它發生了一些錯誤消息。com.github.facebook.watchman.plist用於編寫:權限被拒絕運行反應本機初始項目

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) 

我發現根本沒有文件com.github.facebook.watchman.plist在/用戶/馬普爾/庫/ LaunchAgents。我嘗試了各種方法,但它並沒有起到作用
我會瘋

包版本:。

1.node:V6.1.0
2.watchman:4.6.0

回答