簡體   English   中英

com.github.facebook.watchman.plist進行寫:權限被拒絕運行本機初始項目

[英]com.github.facebook.watchman.plist for write: Permission denied running a react-native initial project

我正在研究react-native。並且我遵循網站上的教程。當我執行“ react-native run-ios”時。 發生一些錯誤消息。

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)

我發現/ Users / Mapple / Library / LaunchAgents中沒有file-com.github.facebook.watchman.plist。 我嘗試了多種方法,但是沒有起作用。
我會發瘋的。

套件版本:

1.節點:v6.1.0
2.守望者:4.6.0

我解決了我的問題。我的目錄中有一個名為“ org.lantern.plist”的文件。我猜這是由於Lantern軟件造成的。因此,當我刪除/ Users / Mapple / Library / LaunchAgents並重新創建它並重新執行時命令“ react-native init HelloWorld”,我的問題解決了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM