ReferenceError: internalBinding is not defined
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 2
Description
Getting this error that says it's the fault of this package when installing `webcat`:
```
$ npm install -g webcat
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.
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/home/user/.nvm/versions/node/v11.6.0/bin/webcat -> /home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/bin.js
> wrtc@0.0.55 install /home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/node_modules/wrtc
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/home/user/.nvm/versions/node/v11.6.0/bin/node',
node-pre-gyp verb cli '/home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/node_modules/wrtc/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.4
node-pre-gyp info using node@11.6.0 | linux | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/node_modules/wrtc/build/wrtc/v0.0.55/Release/node-v67-linux-x64/wrtc.node" (not found)
node-pre-gyp http GET https://node-webrtc.s3.amazonaws.com/wrtc/v0.0.55/Release/node-v67-linux-x64.tar.gz
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack ReferenceError: internalBinding is not defined
node-pre-gyp ERR! stack at evalmachine.:25:1
node-pre-gyp ERR! stack at Object. (/home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/node_modules/wrtc/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
node-pre-gyp ERR! stack at Module._compile (internal/modules/cjs/loader.js:721:30)
node-pre-gyp ERR! stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
node-pre-gyp ERR! stack at Module.load (internal/modules/cjs/loader.js:620:32)
node-pre-gyp ERR! stack at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
node-pre-gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:552:3)
node-pre-gyp ERR! stack at Module.require (internal/modules/cjs/loader.js:657:17)
node-pre-gyp ERR! stack at require (internal/modules/cjs/helpers.js:22:18)
node-pre-gyp ERR! stack at Object. (/home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/node_modules/wrtc/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:3:27)
node-pre-gyp ERR! System Linux 4.19.49-1-MANJARO
node-pre-gyp ERR! command "/home/user/.nvm/versions/node/v11.6.0/bin/node" "/home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/node_modules/wrtc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/user/.nvm/versions/node/v11.6.0/lib/node_modules/webcat/node_modules/wrtc
node-pre-gyp ERR! node -v v11.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.4
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 ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! wrtc@0.0.55 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the wrtc@0.0.55 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
```
Full log: https://gist.github.com/TensorTom/50935799383d7c6255d708d3411fbc27
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 with the node-pre-gyp install entry shown in the log, then inspect node_modules/.../graceful-fs/fs.js and graceful-fs/graceful-fs.js where the exception occurs. Reproduce the npm install with Node v11.6.0 and compare the dependency versions involved. Done should mean the wrtc install completes without the reported ReferenceError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100