无法在Raspberry Pi 4上加载Taiko的模块

时间:2020-01-16 20:40:02

标签: ubuntu npm raspberry-pi

我在Raspberry Pi 4上安装和运行Taiko时遇到困难。我曾尝试通过NPM在32位和64位版本的Ubuntu上通过NPM安装Taiko,但出现相同错误。请告知。

硬件:Raspberry Pi 4 操作系统:Ubuntu 19.10.1 32 bit

安装过程:

sudo apt-get install Chrome浏览器

curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash –

sudo apt-get install -y nodejs

sudo npm install npm --global

mkdir〜/ .npm-global

npm配置设置前缀'〜/ .npm-global'

export PATH =〜/ .npm-global / bin:$ PATH

源〜/ .profile

sudo chown ubuntu:root -R / usr / lib / node_modules /

TAIKO_BROWSER_PATH = $(// usr / bin / chromium-browser)npm install -g taiko

Gtk消息:20:21:52.302:无法加载模块“ canberra-gtk-module”

Gtk消息:20:21:52.305:无法加载模块“ canberra-gtk-module”

[17273:17273:0116 / 202153.078498:ERROR:sandbox_linux.cc(372)]在进程gpu-process中用多个线程调用了InitializeSandbox()。

[17304:7:0116 / 202153.831615:ERROR:command_buffer_proxy_impl.cc(124)] ContextResult :: kTransientFailure:无法发送GpuChannelMsg_CreateCommandBuffer。

[17304:1:0116 / 202154.631772:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService唯一字体名称匹配请求未收到响应。

[17304:1:0116 / 202154.633083:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService唯一字体名称匹配请求未收到响应。

[17032:17267:0116 / 202157.585984:ERROR:udev_watcher.cc(94)]无法开始udev枚举。

1 个答案:

答案 0 :(得分:0)

TAIKO_SKIP_CHROMIUM_DOWNLOAD设置为true可跳过安装过程中默认的铬下载,然后在启动taiko时提供TAIKO_BROWSER_PATH=$(/usr/bin/chromium-browser)

要在树莓派中以无头模式运行,请将参数'--no-sandbox', '--disable-setuid-sandbox'传递到openBrowser

await openBrowser({args: ['--no-sandbox', '--disable-setuid-sandbox']}); 
相关问题