poltergeist:苹果窗口服务器权限错误

时间:2016-08-03 16:02:49

标签: phantomjs file-permissions poltergeist

我正在使用poltergeist来执行测试,最近这已经停止了。尝试使用它的第一个规范失败并出现此错误:

phantomjs[37617] <Error>: Set a breakpoint at CGSLogError to catch errors as they are logged.
phantomjs[37617] <Error>: On-demand launch of the Window Server is allowed for root user only.
phantomjs[37617] <Warning>: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (268435459)
phantomjs[37617] <Error>: On-demand launch of the Window Server is allowed for root user only.
phantomjs[37617] <Warning>: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (268435459)
phantomjs[37617] <Error>: This user is not allowed access to the window system right now.
phantomjs[37617] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
phantomjs[37617] <Warning>: Invalid Connection ID 0
phantomjs[37617:3258922] Could not rendezvous with font server (error 268435459)
phantomjs[37617:3258922] XType: unable to make a connection to the font daemon!
phantomjs[37617:3258922] registering /System/Library/Fonts/*, /System/Library/Fonts/Base/*, and /Library/Fonts/* locally

重新安装phantomjs以及恶作剧者没有任何效果 谷歌搜索这使我远离我已知的rubyverse 我猜这是一个权限问题,但不知道从哪里开始寻找。

我非常欣赏指向正确的方向。

0 个答案:

没有答案