Gazebo | Ignition | Community
Ask Your Question

error on 'npm deploy -m' indicating bug in node-gyp

asked 2019-05-02 17:10:05 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I followed the Gzweb installation for installation on Ubuntu 18.04 (Linux 4.4.0-146) and had the following issues:

=> during the websocket install:


=> and later...

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none was installed.
npm WARN gzweb@1.3.0 No license field.

=> and finally, during building of gzcoarse...

gyp ERR! stack TypeError: this is not a typed array.
gyp ERR! stack at Function.from (native)
gyp ERR! stack at Unzip.write (/home/dmcd/gzweb/node_modules/minizlib/index.js:268:42)
gyp ERR! stack at Unpack.write (/home/dmcd/gzweb/node_modules/tar/lib/parse.js:300:58)
gyp ERR! stack at IncomingMessage.ondata (_stream_readable.js:528:20)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at IncomingMessage.emit (events.js:169:7)
gyp ERR! stack at (_stream_readable.js:360:10)
gyp ERR! stack at flow (_stream_readable.js:743:26)
gyp ERR! stack at resume_ (_stream_readable.js:723:3)
gyp ERR! stack at nextTickCallbackWith2Args (node.js:441:9)
gyp ERR! System Linux 4.4.0-146-generic
gyp ERR! command "/usr/bin/nodejs" "/home/dmcd/gzweb/node_modules/.bin/node-gyp" "configure"
gyp ERR! cwd /home/dmcd/gzweb/gzbridge
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v4.0.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <>
gyp ERR! build error 
gyp ERR! stack Error: You must run `node-gyp configure` first!
gyp ERR! stack at ReadFileContext.<anonymous> (/home/dmcd/gzweb/node_modules/node-gyp/lib/build.js:53:20)
gyp ERR! stack at ReadFileContext.callback (/home/dmcd/gzweb/node_modules/graceful-fs/graceful-fs.js:90:16)
gyp ERR! stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)
gyp ERR! System Linux 4.4.0-146-generic
gyp ERR! command "/usr/bin/nodejs" "/home/dmcd/gzweb/node_modules/.bin/node-gyp" "build" "-d"
gyp ERR! cwd /home/dmcd/gzweb/gzbridge
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v4.0.0
gyp ERR! not ok 
There are node-gyp build errors, exiting.

npm ERR! Linux 4.4.0-146-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "deploy" "---" "-m"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! gzweb@1.3.0 deploy: `./ "-m"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gzweb@1.3.0 deploy script './ "-m"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the gzweb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-03 20:08:04 -0500

I faced the problem too, and I fixed it using bellow codes.

curl -sL | sudo -E bash -

sudo apt-get install -y nodejs

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-05-02 17:10:05 -0500

Seen: 571 times

Last updated: May 02 '19