cloud-automation / node-net-reconnect Goto Github PK
View Code? Open in Web Editor NEWReconnecting TCP Socket Connections for Node.js Applications
Reconnecting TCP Socket Connections for Node.js Applications
node-net-reconnect
fails to install if node version is > 8.x
it seems that building the dependency to net-keepalive throws exceptions like
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
Here is the output of the error:
Error: Could not locate the bindings file. Tried:
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/build/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/build/Debug/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/build/Release/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/out/Debug/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/Debug/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/out/Release/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/Release/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/build/default/binding.node
→ /home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/compiled/8.1.4/linux/arm/binding.n
ode
at bindings (/home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/bindings/bindings.js:88:
9)
at Object.<anonymous> (/home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/ref/lib/ref.js
:5:47)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/aea/apps/therm-demo/dcs/transports/tcp/node_modules/net-keepalive/
lib/index.js:4:11)
As stated here:
npm rebuild
missing index.js
on root directory, that cause node.js cannot find module 'node-net-reconnect'
module.exports = require('./src');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.