听了片刻后,npm依赖项引发错误

时间:2018-11-15 21:44:21

标签: javascript npm error-handling ldap mockserver

我正在尝试使用this LDAP js library.

制作LDAP服务器

此刻,它返回以下错误:

$ node node_modules/ldap-server-mock/server.js --conf=/tmp/ldap-server-mock-conf.json --database=/tmp/users.json

LDAP server listening on port 3004

events.js:183
  throw er; // Unhandled 'error' event
  ^
VError: Parser error for 127.0.0.1:64857: Expected 0x2: got 0x54
at Parser.<anonymous> (/Users/raj/Desktop/ldapjs-tester/node_modules/ldap-server-mock/node_modules/ldapjs/lib/server.js:442:26)
at emitTwo (events.js:126:13)
at Parser.emit (events.js:214:7)
at Parser.write (/Users/raj/Desktop/ldapjs-tester/node_modules/ldap-server-mock/node_modules/ldapjs/lib/messages/parser.js:107:10)
at Socket.<anonymous> (/Users/raj/Desktop/ldapjs-tester/node_modules/ldap-server-mock/node_modules/ldapjs/lib/server.js:460:16)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)

有人可以帮我吗? (我从一个空的仓库开始,运行npm init,添加了ldap-server-mock并按照README文件中的说明进行操作。)

0 个答案:

没有答案