大佬教程收集整理的这篇文章主要介绍了node.js – 在运行react-native初始项目时,watchman.plist权限被拒绝,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Looking for JS files in /Users/username/Desktop/nativeTest/BookSearch [06:03:00] <START> Building Dependency Graph [06:03:00] <START> Crawling File System [06:03:00] <START> Loading bundles layout [06:03:00] <END> Loading bundles layout (0ms) React packager ready. 2015-12-13T06:03:01,281: [cli] Failed to open /Users/username/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied 2015-12-13T06:03:01,281: [cli] Failed to open /Users/username/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied Watchman: watchman--no-pretty get-sockname returned with exit code null 2015-12-13T06:03:01,281: [cli] Failed to open /Users/username/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied ERROR watchman--no-pretty get-sockname returned with exit code null 2015-12-13T06:03:01,281: [cli] Failed to open /Users/username/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied Error: watchman--no-pretty get-sockname returned with exit code null 2015-12-13T06:03:01,281: [cli] Failed to open /Users/username/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied at ChildProcess.<anonymous> (/Users/username/Desktop/nativeTest/BookSearch/node_modules/fb-watchman/index.js:194:18) at emitTwo (events.js:88:13) at ChildProcess.emit (events.js:173:7) at maybeClose (internal/child_process.js:819:16) at Socket.<anonymous> (internal/child_process.js:320:11) at emitOne (events.js:78:13) at Socket.emit (events.js:170:7) at Pipe._onclose (net.js:470:12) See http://facebook.github.io/react-native/docs/troubleshooTing.html for common problems and solutions. ~ Process terminated. Press <enter> to close the window
我试着chmod com.github.facebook.watchman.plist,但实际上那里没有这样的文件.也许我应该改变文件的路径?
我试过的其他事情:
> brew更新
> brew升级守望者
> brew uninstall watchman&& brew安装 – HEAD守望者
>重新启动并重新启动项目
包版本(如果需要):
> node:v5.2.0
>守望者:v4.2.0
$ls -ld ~/Library drwx------+ 57 wez users 1938 Nov 6 07:49 /Users/wez/Library $ls -ld ~/Library/LaunchAgents drwxr-xr-x 3 wez users 102 Dec 11 16:13 /Users/wez/Library/LaunchAgents $ls -l ~/Library/LaunchAgents/com.github.facebook.watchman.plist -rw-r--r-- 1 wez users 1545 Dec 11 16:13 /Users/wez/Library/LaunchAgents/com.github.facebook.watchman.plist
还要确保不以root用户身份或通过sudo运行watchman.
以上是大佬教程为你收集整理的node.js – 在运行react-native初始项目时,watchman.plist权限被拒绝全部内容,希望文章能够帮你解决node.js – 在运行react-native初始项目时,watchman.plist权限被拒绝所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。