npm run deploy failing when installing GzWeb
I am running Ubuntu 16.04 with Gazebo v7.16.1. I have followed the installation instructions for installing gzweb here
When I try the command npm run deploy --- -m
it fails and gives me the following log. I am not an expert with node.js so have no idea where to start on fixing this issue. Any help would be appreciated. Thank you.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'run',
1 verbose cli 'deploy',
1 verbose cli '---',
1 verbose cli '-m',
1 verbose cli 'local' ]
2 info using npm@3.5.2
3 info using node@v4.2.6
4 verbose run-script [ 'predeploy', 'deploy', 'postdeploy' ]
5 info lifecycle gzweb@1.3.0~predeploy: gzweb@1.3.0
6 silly lifecycle gzweb@1.3.0~predeploy: no script for predeploy, continuing
7 info lifecycle gzweb@1.3.0~deploy: gzweb@1.3.0
8 verbose lifecycle gzweb@1.3.0~deploy: unsafe-perm in lifecycle true
9 verbose lifecycle gzweb@1.3.0~deploy: PATH: /usr/share/npm/bin/node-gyp-bin:/home/reuben/gzweb/node_modules/.bin:/opt/ros/kinetic/bin:/home/reuben/bin:/home/reuben/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle gzweb@1.3.0~deploy: CWD: /home/reuben/gzweb
11 silly lifecycle gzweb@1.3.0~deploy: Args: [ '-c', './deploy.sh "-m" "local"' ]
12 silly lifecycle gzweb@1.3.0~deploy: Returned: code: 1 signal: null
13 info lifecycle gzweb@1.3.0~deploy: Failed to exec deploy script
14 verbose stack Error: gzweb@1.3.0 deploy: `./deploy.sh "-m" "local"`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:821:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid gzweb@1.3.0
16 verbose cwd /home/reuben/gzweb
17 error Linux 4.15.0-128-generic
18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "deploy" "---" "-m" "local"
19 error node v4.2.6
20 error npm v3.5.2
21 error code ELIFECYCLE
22 error gzweb@1.3.0 deploy: `./deploy.sh "-m" "local"`
22 error Exit status 1
23 error Failed at the gzweb@1.3.0 deploy script './deploy.sh "-m" "local"'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the gzweb package,
23 error not with npm itself.
23 ...