Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot npm install with Node.js 10 -> Missing wrtc builds for Node.js 10 #204

Closed
alanshaw opened this issue Jun 20, 2018 · 2 comments · Fixed by #211
Closed

Cannot npm install with Node.js 10 -> Missing wrtc builds for Node.js 10 #204

alanshaw opened this issue Jun 20, 2018 · 2 comments · Fixed by #211
Assignees

Comments

@alanshaw
Copy link
Member

The wrtc module does not have a prebuilt binary for version 0.1.1 (currently pinned to this specific version in package.json).

node-pre-gyp ERR! install error 
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.1.1/Release/node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/node-pre-gyp/lib/install.js:118:27)
node-pre-gyp ERR! stack     at Request.emit (events.js:187:15)
node-pre-gyp ERR! stack     at Request.onRequestResponse (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/node-pre-gyp/node_modules/request/request.js:1074:10)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:182:13)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:546:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:432:20)
node-pre-gyp ERR! stack     at TLSSocket.emit (events.js:182:13)
node-pre-gyp ERR! stack     at addChunk (_stream_readable.js:283:12)
node-pre-gyp ERR! stack     at readableAddChunk (_stream_readable.js:264:11)
node-pre-gyp ERR! System Darwin 17.5.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/alan/Code/protocol-labs/js-libp2p/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /Users/alan/Code/protocol-labs/js-libp2p/node_modules/wrtc
node-pre-gyp ERR! node -v v10.4.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
404 status code downloading tarball https://node-webrtc.s3.amazonaws.com/wrtc/v0.1.1/Release/node-v64-darwin-x64.tar.gz
Unable to install a pre-built wrtc binary; falling back to ncmake
Running ncmake configure
CMake binary could not be found. Please verify your PATH.
Running ncmake build

I installed cmake using brew install cmake and whilst npm install succeeded, running npm test failed with the following:

/Users/alan/Code/protocol-labs/js-libp2p/node_modules/node-cmake/index.js:40
  if(!found) throw new Error('Unable to find native module');
             ^

Error: Unable to find native module
    at requireNativeModule (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/node-cmake/index.js:40:20)
    at Object.<anonymous> (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/wrtc/lib/binding.js:3:39)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/wrtc/lib/peerconnection.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/wrtc/lib/index.js:6:29)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/alan/Code/protocol-labs/js-libp2p/test/transports.node.js:14:14)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/alan/Code/protocol-labs/js-libp2p/test/node.js:4:1)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at /Users/alan/Code/protocol-labs/js-libp2p/node_modules/mocha/lib/mocha.js:231:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/mocha/lib/mocha.js:228:14)
    at Mocha.run (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/mocha/lib/mocha.js:536:10)
    at Object.<anonymous> (/Users/alan/Code/protocol-labs/js-libp2p/node_modules/mocha/bin/_mocha:573:18)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

I'm on macOS 10.13.4 running Node.js 10.4.1.

@victorb
Copy link
Member

victorb commented Jun 26, 2018

Currently the CI builds for js-libp2p + Node.js 10.4.1 fails because of this:

image

@daviddias daviddias changed the title Cannot npm install with Node.js 10 Cannot npm install with Node.js 10 -> Missing wrtc builds for Node.js 10 Jun 28, 2018
@ghost ghost assigned jacobheun Jun 28, 2018
@ghost ghost added the status/in-progress In progress label Jun 28, 2018
@ghost ghost removed the status/in-progress In progress label Jun 29, 2018
achingbrain added a commit that referenced this issue Jun 27, 2023
The CID class has breaking changes in v11 so update all deps to the
latest version.
achingbrain pushed a commit that referenced this issue Jun 27, 2023
## [6.0.0](libp2p/js-libp2p-floodsub@v5.0.0...v6.0.0) (2023-01-06)

### ⚠ BREAKING CHANGES

* update multiformats to v11 (#204)

### Bug Fixes

* update multiformats to v11 ([#204](libp2p/js-libp2p-floodsub#204)) ([8a5c994](libp2p/js-libp2p-floodsub@8a5c994))

### Documentation

* update readme ([3bb5712](libp2p/js-libp2p-floodsub@3bb5712))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants