node-pre-gyp install error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 2
Description
zjuwjfdeMacBook-Pro:dsl2 zjuwjf$ tnpm install canvas@next
✔ Installed 1 packages
✔ Linked 66 latest versions
node-pre-gyp http GET https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.0.0-alpha.13/canvas-prebuilt-v2.0.0-alpha.13-node-v64-darwin-unknown-x64.tar.gz
node-pre-gyp http 302 https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.0.0-alpha.13/canvas-prebuilt-v2.0.0-alpha.13-node-v64-darwin-unknown-x64.tar.gz
node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/10.1.0/bin/node" "/Users/zjuwjf/idlefish-git/dsl2/node_modules/_canvas@2.0.0-alpha.13@canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/zjuwjf/idlefish-git/dsl2/node_modules/_canvas@2.0.0-alpha.13@canvas
node-pre-gyp ERR! node -v v10.3.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! https://github.com/mapbox/node-pre-gyp/issues
✖ Install fail! Error: post install error, please remove node_modules before retry!
Run "sh -c node-pre-gyp install --fallback-to-build" error, exit code 6
Error: post install error, please remove node_modules before retry!
Run "sh -c node-pre-gyp install --fallback-to-build" error, exit code 6
at ChildProcess.proc.on.code (/usr/local/lib/node_modules/tnpm/node_modules/_runscript@1.3.0@runscript/index.js:74:21)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
npminstall version: 3.7.0
npminstall args: /usr/local/Cellar/node/10.1.0/bin/node /usr/local/lib/node_modules/tnpm/node_modules/_npminstall@3.7.0@npminstall/bin/install.js --tmp=/Users/zjuwjf/.tnpm_tmp --no-proxy --disturl=https://tnpm-hz.oss-cn-hangzhou.aliyuncs.com/dist/node --userconfig=/Users/zjuwjf/.tnpmrc --registry=http://registry.npm.alibaba-inc.com canvas@next --china --prefix=/usr/local --forbidden-licenses=AGPL,CPAL,OSL --fix-bug-versions
[tnpm] subprocess:/usr/local/lib/node_modules/tnpm/node_modules/_npminstall@3.7.0@npminstall/bin/install.js exit code: 1, signal: null
[tnpm] mainprocess exit code: 1
=============================================================
node -v
v10.3.0
tnpm -v
tnpm@5.13.1 (/usr/local/lib/node_modules/tnpm/bin/tnpm.js)
npm@5.10.0 (/usr/local/lib/node_modules/tnpm/node_modules/_npm@5.10.0@npm/lib/npm.js)
node@10.3.0 (/usr/local/Cellar/node/10.1.0/bin/node)
npminstall@3.7.0 (/usr/local/lib/node_modules/tnpm/node_modules/_npminstall@3.7.0@npminstall/lib/index.js)
prefix=/usr/local (load prefix from: $ npm config get prefix)
darwin x64 16.7.0
registry=http://registry.npm.alibaba-inc.com
package.engines={} (package.json: /Users/zjuwjf/idlefish-git/dsl2)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported node-pre-gyp install --fallback-to-build failure with Node v10.3.0 on Darwin, using the canvas@next installation details and command output as the entry point. Trace the failed completion callback and verify that installation either downloads the binary or completes the fallback build without exiting with code 6.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100