-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Issue
Can't run PouchDB node.js with yarn on macOS.
It is working on Windows 10.
Info
- Environment: Node.js v11.9.0
- Platform: macOS Mojave Version 10.14.3 (18D109)
- Server: PouchDB Version 7.1.1
Reproduce
See repository to reproduce: https://github.com/tiloio/yarn-macos-pouchdb-error
Short reproduce.
Content of index.js file:
var PouchDB = require('pouchdb');
var db = new PouchDB('dbname');
db.put({
_id: '[email protected]',
name: 'David',
age: 69
});
db.changes().on('change', function() {
console.log('Ch-Ch-Changes');
});
Run yarn add pouchdb && node index.js on MacOS and get following error:
$ node index.js
(node:56044) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added. Use emitter.setMaxListeners() to increase limit
(node:56044) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 closed listeners added. Use emitter.setMaxListeners() to increase limit
Ch-Ch-Changes
Ch-Ch-Changes
Ch-Ch-Changes
/Users/Tilo/Documents/workspace/test/node_modules/readable-stream/lib/_stream_transform.js:82
return this.emit('error', new ERR_MULTIPLE_CALLBACK());
^
Error: Callback called multiple times
at DestroyableTransform.afterTransform (/Users/Tilo/Documents/workspace/test/node_modules/readable-stream/lib/_stream_transform.js:82:31)
at onGetWinningDoc (/Users/Tilo/Documents/workspace/test/node_modules/pouchdb/lib/index.js:5829:11)
at onGetMetadata (/Users/Tilo/Documents/workspace/test/node_modules/pouchdb/lib/index.js:5840:18)
at /Users/Tilo/Documents/workspace/test/node_modules/pouchdb/lib/index.js:5864:9
at /Users/Tilo/Documents/workspace/test/node_modules/pouchdb/lib/index.js:4142:9
at /Users/Tilo/Documents/workspace/test/node_modules/pouchdb/lib/index.js:3973:13
Emitted 'error' event at:
at DestroyableTransform.onerror (/Users/Tilo/Documents/workspace/test/node_modules/pouchdb/node_modules/readable-stream/lib/_stream_readable.js:558:12)
at DestroyableTransform.emit (events.js:197:13)
at DestroyableTransform.afterTransform (/Users/Tilo/Documents/workspace/test/node_modules/readable-stream/lib/_stream_transform.js:82:17)
at onGetWinningDoc (/Users/Tilo/Documents/workspace/test/node_modules/pouchdb/lib/index.js:5829:11)
[... lines matching original stack trace ...]
at /Users/Tilo/Documents/workspace/test/node_modules/pouchdb/lib/index.js:3973:13
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels