Uncaught Error [EINVAL]: Expected unsigned number
See original GitHub issueI’m getting the following error when using utp-native as a dependency
Uncaught Error [EINVAL]: Expected unsigned number
at Connection._connect (node_modules/utp-native/lib/connection.js:187:11)
at UTP.connect (node_modules/utp-native/index.js:137:13)
at Function.UTP.connect (node_modules/utp-native/index.js:45:14)
at UTP.listener.listen (test/listen-dial.spec.js:43:33)
at emitListening (node_modules/utp-native/index.js:248:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
I followed the port all the way down and it is always a Number.
Came to the repo to check if I could get the tests to pass and got a Error on install
⭠ master ⮀~/code/utp-native
» npm i && npm test
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
> utp-native@2.1.0 install /Users/imp/code/utp-native
> node-gyp-build
make: *** No rule to make target `Release/obj.target/libutp/deps/libutp/utp_internal.o', needed by `Release/utp.a'. Stop.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/imp/code/utp-native
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! utp-native@2.1.0 install: `node-gyp-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the utp-native@2.1.0 install script.
Looks like something changed on Node.js 10.13.0, just haven’t been able to find exactly what. Any clue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
[wgsl-in] Confusing error: "expected unsigned/signed integer ...
The error goes away if I change 1 to 1u , making it explicitly unsigned. If this program should pass validation, then the...
Read more >c - Error: type is 'unsigned int' where 'long ... - Stack Overflow
My C is pretty rusty and I know that unsigned and unsigned long are not the same but I'm unsure what is triggering...
Read more >kern_memorystatus.c - Apple Open Source
static boolean_t is_reason_zone_map_exhaustion(unsigned cause) { if (cause ... no frills kill call * Return: 0 on success * error code on failure (EINVAL....
Read more >25997 – pthread_mutex_lock QoI issue for unaligned futex.
If you use an unaligned mutex, and hence an unaligned futex, the kernel returns EINVAL and we ignore that and busy loop consuming...
Read more >problem_db2 - Linux Foundation
That is to be MARKER # expected and is not a problem with Tcl. COMMENT This test ... Xorg has evidently changed an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When building locally you have to run
npm run fetch-libutp
first. I’ll add that to the docs.Thanks! I was missing that step 😃