Closed glalejos closed 5 years ago
I guess you need node 8+, since the script uses some ES6 (in this case async
) syntax.
If you plan to use gauge-js
plugin, then it only works with node 8+.
Thanks @sriv, that moved forward the installation process!.
However it is unable to successfully complete the installation:
root@debian:~# npm install -g @getgauge/cli
/opt/node-v10.15.0-linux-x64/bin/gauge -> /opt/node-v10.15.0-linux-x64/lib/node_modules/@getgauge/cli/bin/gauge
> @getgauge/cli@1.0.3 install /opt/node-v10.15.0-linux-x64/lib/node_modules/@getgauge/cli
> node ./src/index.js
Fetching download url for Gauge version 1.0.3
TypeError: Cannot read property 'assets' of undefined
at Request.request.get [as _callback] (/opt/node-v10.15.0-linux-x64/lib/node_modules/@getgauge/cli/src/install.js:46:40)
at self.callback (/opt/node-v10.15.0-linux-x64/lib/node_modules/@getgauge/cli/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.onRequestError (/opt/node-v10.15.0-linux-x64/lib/node_modules/@getgauge/cli/node_modules/request/request.js:881:8)
at ClientRequest.emit (events.js:182:13)
at TLSSocket.socketErrorListener (_http_client.js:392:9)
at TLSSocket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
+ @getgauge/cli@1.0.3
updated 1 package in 143.555s
I bet this is related to the proxy.
How can I define the proxy in order to complete the installation?
Thank you,
Guillermo
hi @glalejos - can you please try setting the proxy as an environment variable?
Thanks @sriv. I was missing the http_proxy
environment variable - which I was pretty sure was defined, sorry for not double checking before asking -
I got another error after that one, but it went away when I connected to a proxyless network at home...
The important part is that Gauge is now installed.
Thanks again.
Hi, I'm trying to install Gauge with the command
npm --registry http://localhost:39720/repository/npm-group/ install -g @getgauge/cli
, but I get the following error:I'm using npm 6.6.0, and I can install other packages via npm without problem.
Any idea on what might be wrong?
Thank you,
Guillermo