Unable to install gauge with npm

118 views
Skip to first unread message

Luke Simmons

unread,
Aug 26, 2019, 9:49:09 PM8/26/19
to getgauge
I've followed the instructions verbatim to install gauge from "https://gauge.org/getting-started-guide/quick-install/" and I'm unable to install it.

I'm starting from a fresh GCP Debian instance. After installing the NodeJS PPM and then following the instructions, "gauge" is installing a blank file under /usr/lib/node_modules/@getgauge/cli/bin.  I'm getting the following file permission error. This is all run as root.

root@instance-1:~# npm -v
6.9.0
root@instance-1:~# node -v
v10.16.3
root@instance-1:~# npm install -g npm@latest
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ n...@6.11.2
added 19 packages from 13 contributors, removed 15 packages and updated 53 packages in 6.895s
root@instance-1:~# npm install -g @getgauge/cli
/usr/bin/gauge -> /usr/lib/node_modules/@getgauge/cli/bin/gauge

> @getgauge/c...@1.0.5 install /usr/lib/node_modules/@getgauge/cli
> node ./src/index.js

Fetching download url for Gauge version 1.0.5
{ [Error: EACCES: permission denied, open 'bin/gauge'] errno: -13, code: 'EACCES', syscall: 'open', path: 'bin/gauge' }
+ @getgauge/c...@1.0.5
added 83 packages from 76 contributors in 6.48s

Version information

root@gauge:~/gaugetest$ npm -v
6.11.2
root@gauge:~/gaugetest$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.9 (stretch)
Release:        9.9
Codename:       stretch


Any ideas?

Srikanth V

unread,
Aug 26, 2019, 10:15:52 PM8/26/19
to getgauge
HI,

This seems to be an issue with the npm installer. I could see the same behaviour on docker as well:

sudo docker run -it node:8-stretch /bin/bash
root@ef621c6fa14b:/# node -v
v8.16.1
root@ef621c6fa14b:/# npm update -g npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ n...@6.11.2
added 61 packages from 18 contributors, removed 18 packages and updated 69 packages in 29s
root@ef621c6fa14b:/# npm i -g @getgauge/cli
/usr/local/bin/gauge -> /usr/local/lib/node_modules/@getgauge/cli/bin/gauge

> @getgauge/c...@1.0.6 install /usr/local/lib/node_modules/@getgauge/cli
> node ./src/index.js

Fetching download url for Gauge version 1.0.6
Downloading https://github.com/getgauge/gauge/releases/download/v1.0.6/gauge-1.0.6-linux.x86_64.zip to ./bin

{ Error: EACCES: permission denied, open 'bin/gauge' errno: -13, code: 'EACCES', syscall: 'open', path: 'bin/gauge' }
+ @getgauge/c...@1.0.6
added 83 packages from 76 contributors in 18.055s

Please, could you create an issue - https://github.com/getgauge/gauge ?

thanks
Srikanth

Luke Simmons

unread,
Aug 26, 2019, 11:30:32 PM8/26/19
to getg...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/718a45b2-b8a2-4b5f-bf7e-bdb1c842dfe1%40googlegroups.com.

Luke Simmons

unread,
Aug 26, 2019, 11:31:21 PM8/26/19
to getgauge

Vinay Shukla

unread,
Aug 27, 2019, 4:51:03 AM8/27/19
to getgauge
Hi,
Could you please trying installing with perm `--unsafe-perm`?
Example: `npm install -g @getgauge/cli --unsafe-perm`

HTH
Vinay

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages