Taiko: fail when gauge run

Created on 8 Jan 2019  路  1Comment  路  Source: getgauge/taiko

I installed gauge and taiko manually on a CentOS docker container:

export GAUGE_HOME=/root/gauge
export NODEJS_HOME=$GAUGE_HOME/nodejs/node-v11.6.0/bin/
export PATH=$PATH:$NODEJS_HOME:$GAUGE_HOME
export TAIKO_SKIP_CHROMIUM_DOWNLOAD=True
export TAIKO_BROWSER_PATH=/usr/bin/chromium-browser

yum install -y wget
yum install -y epel-release
yum install -y chromium
yum install -y gcc-c++ tar
yum install -y make

npm config set unsafe-perm true
npm i taiko -g

gauge install js
gauge install html-report
gauge install screenshot

And I downloaded the official sample taiko with gauge code to /root/gauge/output/

When I run:

cd /root/gauge/output/
gauge run

error occurs!

Failed to initialize spec datastore. Error: write tcp 127.0.0.1:36215->127.0.0.1:48962: use of closed network connection

It seems to be caused by I install taiko globally, because when I run the following shell, it will work:

export TAIKO_SKIP_CHROMIUM_DOWNLOAD=false
cd /root/gauge/output
npm install taiko
gauge run

I expect it will work without installing taiko in the output folder locally.

Thanks!

Most helpful comment

If the globally installed taiko has to be used in local module it can be linked using npm link taiko.
Otherwise node expects it to be installed as a local module. Some reference https://nodejs.org/en/blog/npm/npm-1-0-global-vs-local-installation/

>All comments

If the globally installed taiko has to be used in local module it can be linked using npm link taiko.
Otherwise node expects it to be installed as a local module. Some reference https://nodejs.org/en/blog/npm/npm-1-0-global-vs-local-installation/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sguptatw picture sguptatw  路  7Comments

suleytron picture suleytron  路  3Comments

crogger62 picture crogger62  路  5Comments

ghost picture ghost  路  6Comments

NivedhaSenthil picture NivedhaSenthil  路  3Comments