我最近运行了 npm install,它更新了我所有的包。出于某种原因,这破坏了我的网络服务器(每当我尝试加载页面时,它只会加载一部分并死于此错误)。我尝试回滚版本的 socket.io、redis 和 nodetime,它们是出现在堆栈跟踪中的包,但是我没有运气让网络服务器再次工作。帮助?我在 OS X 上运行。
events.js:66
throw arguments[1]; // Unhandled 'error' event
^
TypeError: First argument must be a Buffer
at RedisClient.message (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/lib/stores/redis.js:126:24)
at RedisClient.EventEmitter.emit (events.js:115:20)
at RedisClient.return_reply (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/node_modules/redis/index.js:440:22)
at RedisReplyParser.<anonymous> (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/node_modules/redis/index.js:81:14)
at RedisReplyParser.EventEmitter.emit (events.js:88:17)
at RedisReplyParser.add_multi_bulk_reply (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/node_modules/redis/lib/parser/javascript.js:311:14)
at RedisReplyParser.send_reply (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/node_modules/redis/lib/parser/javascript.js:272:18)
at RedisReplyParser.execute (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/node_modules/redis/lib/parser/javascript.js:222:22)
at RedisClient.on_data (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/node_modules/redis/index.js:358:27)
at Socket.<anonymous> (/Users/jchu/code/python/agles/ci/web/back/node_modules/socket.io/node_modules/redis/index.js:93:14)