mapbox / mapbox/node-pre-gyp

Unable to install excel-as-json because of node-prepgyp

Open
#467 0 comments 0 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

I m trying to install excel-as-json but it is failing due to below error.
Node version: V12.4.0
NPM version: 6.9.0

C:\Users\vn502jp\WebstormProjects\ExcelToJson>npm i excel-as-json --save
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.

> libxmljs@0.18.8 install C:\Users\vn502jp\WebstormProjects\ExcelToJson\node_modules\libxmljs
> node-pre-gyp install --fallback-to-build --loglevel http

node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v72-win32-x64.tar.gz
node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Windows_NT 10.0.15063
node-pre-gyp ERR! command "C:\\Program Files (x86)\\node-v12.4.0-win-x64\\node.exe" "C:\\Users\\vn502jp\\WebstormProjects\\ExcelToJson\\node_modules\\libxmljs\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
node-pre-gyp ERR! cwd C:\Users\vn502jp\WebstormProjects\ExcelToJson\node_modules\libxmljs
node-pre-gyp ERR! node -v v12.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
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 Excel_To_JSON-Automation@0.0.1 No repository field.
npm WARN Excel_To_JSON-Automation@0.0.1 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! libxmljs@0.18.8 install: `node-pre-gyp install --fallback-to-build --loglevel http`
npm ERR! Exit status 6
npm ERR!
npm ERR! Failed at the libxmljs@0.18.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\vn502jp\AppData\Roaming\npm-cache\_logs\2019-06-14T04_13_22_730Z-debug.log

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

Start with the reported `npm i excel-as-json --save` command and the `libxmljs` install log, especially `node_modules/libxmljs/node_modules/node-pre-gyp/bin/node-pre-gyp` at v0.9.1 on Windows with Node v12.4.0. Reproduce the failure and trace the reported completion-callback error; done when the affected package installs without the callback and ELIFECYCLE failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.