I seem to be getting the same error over several times. I keep getting this (node-gyp rebuild 2> builderror.log) || (exit 0) message. What exactly is it? Also is the node.js redis module no longer included with socket.io?
ubuntu@ip-10-180-52-29:~$ sudo npm install socket.io
> [email protected] install /home/ubuntu/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory `/home/ubuntu/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: Leaving directory `/home/ubuntu/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build'
> [email protected] install /home/ubuntu/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory `/home/ubuntu/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: Leaving directory `/home/ubuntu/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build'
[email protected] node_modules/socket.io
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
I don't see any errors here. (node-gyp rebuild 2> builderror.log) || (exit 0) is just the command which gets executed.
node-gyp rebuild is the actual command.2>: Here 2 is stderr, > redirects stderr to the file builderror.log. In simpler words, error is written to builderror.log.|| means "or". If (node-gyp rebuild 2> builderror.log) generates an error, exit code will be truthy (not 0). If the node-gyp rebuild command doesn't generate an error, the left hand side of the "or" statement will be falsy (0), and (exit 0) gets executed.(exit 0): 0 is the status code for success.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With