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!
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/
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/