Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Phantomjs 恶鬼:苹果窗口服务器权限错误_Phantomjs_File Permissions_Poltergeist - Fatal编程技术网

Phantomjs 恶鬼:苹果窗口服务器权限错误

Phantomjs 恶鬼:苹果窗口服务器权限错误,phantomjs,file-permissions,poltergeist,Phantomjs,File Permissions,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. phantom

我用它来执行测试,最近它已经停止工作了。尝试使用它的第一个规范失败,出现以下错误:

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[37617]:在CGSLogError设置断点,以便在记录错误时捕获错误。
phantomjs[37617]:只允许root用户按需启动窗口服务器。
phantomjs[37617]:CGSLookupServerRootPort:无法查找“com.apple.windowserver.active”的端口(268435459)
phantomjs[37617]:只允许root用户按需启动窗口服务器。
phantomjs[37617]:CGSLookupServerRootPort:无法查找“com.apple.windowserver.active”的端口(268435459)
phantomjs[37617]:目前不允许该用户访问窗口系统。
phantomjs[37617]:CGSConnectionByID:0不是有效的连接ID。
phantomjs[37617]:无效的连接ID 0
phantomjs[37617:3258922]无法与字体服务器会合(错误268435459)
phantomjs[37617:3258922]XType:无法连接到字体守护程序!
phantomjs[37617:3258922]在本地注册/System/Library/Fonts/*、/System/Library/Fonts/Base/*和/Library/Fonts/*
重新安装phantomjs和恶鬼没有任何效果。
在谷歌上搜索这一点让我远离了我熟悉的rubyverse。
我猜这是一个权限问题,但不知道从哪里开始查找

如果能给我指出正确的方向,我将不胜感激