mapbox / mapbox/node-pre-gyp

node-pre-gyp install --fallback-to-build

Open
#475 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.2k
Forks
271
Avg merge
23h 40m
Merged PRs (30d)
2

Description

When installing Hue, the npm fails on node-pre-gyp

below is the error message:

> zipfile@0.5.12 install /home/hadoop/hue/node_modules/zipfile
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack TypeError: this is not a typed array.
node-pre-gyp ERR! stack at Function.from (native)
node-pre-gyp ERR! stack at Unzip.write (/home/hadoop/hue/node_modules/minizlib/index.js:277:42)
node-pre-gyp ERR! stack at Unpack.write (/home/hadoop/hue/node_modules/tar/lib/parse.js:305:58)
node-pre-gyp ERR! stack at Request.ondata (stream.js:31:26)
node-pre-gyp ERR! stack at emitOne (events.js:77:13)
node-pre-gyp ERR! stack at Request.emit (events.js:169:7)
node-pre-gyp ERR! stack at IncomingMessage. (/home/hadoop/hue/node_modules/request/request.js:1080:12)
node-pre-gyp ERR! stack at emitOne (events.js:77:13)
node-pre-gyp ERR! stack at IncomingMessage.emit (events.js:169:7)
node-pre-gyp ERR! stack at readableAddChunk (_stream_readable.js:146:16)
node-pre-gyp ERR! System Linux 4.4.0-122-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/hadoop/hue/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/hadoop/hue/node_modules/zipfile
node-pre-gyp ERR! node -v v4.2.6
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!
npm WARN install:zipfile@0.5.12 zipfile@0.5.12 install: `node-pre-gyp install --fallback-to-build`
npm WARN install:zipfile@0.5.12 Exit status 7

> libxmljs@0.19.5 install /home/hadoop/hue/node_modules/libxmljs
> node-pre-gyp install --fallback-to-build --loglevel http

Here are the npm and node version
> npm -v
3.5.2

> node -v
v4.2.6

This is similar to another issue : https://github.com/mapbox/node-pre-gyp/issues/471 which is still open, though the exception is different.

Can you help.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names node-pre-gyp, zipfile, libxmljs, minizlib, and tar, with the failure at node_modules/minizlib/index.js:277 under Node v4.2.6 and npm 3.5.2. Start by reproducing the installation and tracing the typed-array exception through the reported stack; done means the install completes without the node-pre-gyp exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.