{"action":"created","issue":{"url":"https://api.github.com/repos/chris-l/mock-couch/issues/55","repository_url":"https://api.github.com/repos/chris-l/mock-couch","labels_url":"https://api.github.com/repos/chris-l/mock-couch/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/chris-l/mock-couch/issues/55/comments","events_url":"https://api.github.com/repos/chris-l/mock-couch/issues/55/events","html_url":"https://github.com/chris-l/mock-couch/issues/55","id":332579041,"node_id":"MDU6SXNzdWUzMzI1NzkwNDE=","number":55,"title":"crash on require('mock-couch')","user":{"login":"chriswatrous","id":9014937,"node_id":"MDQ6VXNlcjkwMTQ5Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/9014937?v=4","gravatar_id":"","url":"https://api.github.com/users/chriswatrous","html_url":"https://github.com/chriswatrous","followers_url":"https://api.github.com/users/chriswatrous/followers","following_url":"https://api.github.com/users/chriswatrous/following{/other_user}","gists_url":"https://api.github.com/users/chriswatrous/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswatrous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswatrous/subscriptions","organizations_url":"https://api.github.com/users/chriswatrous/orgs","repos_url":"https://api.github.com/users/chriswatrous/repos","events_url":"https://api.github.com/users/chriswatrous/events{/privacy}","received_events_url":"https://api.github.com/users/chriswatrous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-14T21:58:50Z","updated_at":"2018-06-15T03:47:11Z","closed_at":null,"author_association":"NONE","body":"I'm having a problem with node crashing when I require mock-couch.\r\n\r\n- macOS 10.13.4\r\n- node v8.9.1\r\n- npm v6.1.0\r\n\r\npackage.json\r\n```\r\n{\r\n  \"dependencies\": {\r\n    \"mock-couch\": \"0.1.10\"\r\n  }\r\n}\r\n```\r\n\r\ntest.js\r\n```\r\nrequire('mock-couch');\r\n```\r\n\r\n```\r\nbash> node test.js\r\n\r\n\r\n#\r\n# Fatal error in ../deps/v8/src/api.cc, line 1248\r\n# Check failed: !value_obj->IsJSReceiver() || value_obj->IsTemplateInfo().\r\n#\r\nIllegal instruction: 4\r\n```\r\n\r\n```\r\nbash> npm list\r\n/Users/chris/projects/rmc/test\r\n└─┬ mock-couch@0.1.10\r\n  ├── color-convert@1.0.0 extraneous\r\n  ├── couch-viewkey-compare@1.0.1\r\n  ├── grunt@0.4.5 extraneous\r\n  ├── grunt-jasmine-nodejs@1.5.2 extraneous\r\n  ├── grunt-jslint@1.1.14 extraneous\r\n  ├── ramda@0.8.0\r\n  ├─┬ restify@2.8.5 invalid\r\n  │ ├── assert-plus@0.1.5 extraneous\r\n  │ ├── backoff@2.5.0 extraneous\r\n  │ ├── bunyan@1.8.0 extraneous\r\n  │ ├── csv@0.4.6 extraneous\r\n  │ ├── deep-equal@0.2.2 extraneous\r\n  │ ├── dtrace-provider@0.3.2 extraneous\r\n  │ ├── escape-regexp-component@1.0.2 extraneous\r\n  │ ├── formidable@1.0.17 extraneous\r\n  │ ├── http-signature@0.10.1 extraneous\r\n  │ ├── keep-alive-agent@0.0.1 extraneous\r\n  │ ├── lru-cache@2.7.3 extraneous\r\n  │ ├── mime@1.3.4 extraneous\r\n  │ ├── negotiator@0.4.9 extraneous\r\n  │ ├── node-uuid@1.4.7 extraneous\r\n  │ ├── once@1.3.3 extraneous\r\n  │ ├── qs@1.2.2 extraneous\r\n  │ ├── semver@2.3.2 extraneous\r\n  │ ├── spdy@1.32.5 extraneous\r\n  │ ├── tunnel-agent@0.4.2 extraneous\r\n  │ └── verror@1.6.1 extraneous\r\n  └── underscore@1.8.3\r\n\r\nnpm ERR! extraneous: color-convert@1.0.0 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/color-convert\r\nnpm ERR! extraneous: grunt@0.4.5 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt\r\nnpm ERR! extraneous: grunt-jasmine-nodejs@1.5.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt-jasmine-nodejs\r\nnpm ERR! extraneous: grunt-jslint@1.1.14 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt-jslint\r\nnpm ERR! invalid: restify@2.8.5 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/restify\r\nnpm ERR! extraneous: assert-plus@0.1.5 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/assert-plus\r\nnpm ERR! extraneous: backoff@2.5.0 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/backoff\r\nnpm ERR! extraneous: bunyan@1.8.0 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/bunyan\r\nnpm ERR! extraneous: csv@0.4.6 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/csv\r\nnpm ERR! extraneous: deep-equal@0.2.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/deep-equal\r\nnpm ERR! extraneous: dtrace-provider@0.3.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/dtrace-provider\r\nnpm ERR! extraneous: escape-regexp-component@1.0.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/escape-regexp-component\r\nnpm ERR! extraneous: formidable@1.0.17 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/formidable\r\nnpm ERR! extraneous: http-signature@0.10.1 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/http-signature\r\nnpm ERR! extraneous: keep-alive-agent@0.0.1 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/keep-alive-agent\r\nnpm ERR! extraneous: lru-cache@2.7.3 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/lru-cache\r\nnpm ERR! extraneous: mime@1.3.4 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/mime\r\nnpm ERR! extraneous: negotiator@0.4.9 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/negotiator\r\nnpm ERR! extraneous: node-uuid@1.4.7 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/node-uuid\r\nnpm ERR! extraneous: once@1.3.3 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/once\r\nnpm ERR! extraneous: qs@1.2.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/qs\r\nnpm ERR! extraneous: semver@2.3.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/semver\r\nnpm ERR! extraneous: spdy@1.32.5 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/spdy\r\nnpm ERR! extraneous: tunnel-agent@0.4.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/tunnel-agent\r\nnpm ERR! extraneous: verror@1.6.1 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/verror\r\n```\r\n\r\nI wonder if the problem is related to `restify@2.8.5 invalid`? I'm not sure what that means."},"comment":{"url":"https://api.github.com/repos/chris-l/mock-couch/issues/comments/397505431","html_url":"https://github.com/chris-l/mock-couch/issues/55#issuecomment-397505431","issue_url":"https://api.github.com/repos/chris-l/mock-couch/issues/55","id":397505431,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzUwNTQzMQ==","user":{"login":"chriswatrous","id":9014937,"node_id":"MDQ6VXNlcjkwMTQ5Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/9014937?v=4","gravatar_id":"","url":"https://api.github.com/users/chriswatrous","html_url":"https://github.com/chriswatrous","followers_url":"https://api.github.com/users/chriswatrous/followers","following_url":"https://api.github.com/users/chriswatrous/following{/other_user}","gists_url":"https://api.github.com/users/chriswatrous/gists{/gist_id}","starred_url":"https://api.github.com/users/chriswatrous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriswatrous/subscriptions","organizations_url":"https://api.github.com/users/chriswatrous/orgs","repos_url":"https://api.github.com/users/chriswatrous/repos","events_url":"https://api.github.com/users/chriswatrous/events{/privacy}","received_events_url":"https://api.github.com/users/chriswatrous/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T03:47:11Z","updated_at":"2018-06-15T03:47:11Z","author_association":"NONE","body":"Well this is wierd. If I delete `node_modules` but leave `package-lock.json` and reinstall, it works fine, and I get a very different output from `npm list`.\r\n\r\n```\r\nbash> npm list\r\n/Users/chris/projects/rmc/test\r\n└─┬ mock-couch@0.1.10\r\n  ├── color-convert@1.0.0 extraneous\r\n  ├── couch-viewkey-compare@1.0.1\r\n  ├── grunt@0.4.5 extraneous\r\n  ├── grunt-jasmine-nodejs@1.5.2 extraneous\r\n  ├── grunt-jslint@1.1.14 extraneous\r\n  ├── ramda@0.8.0\r\n  ├─┬ restify@6.4.0\r\n  │ ├── assert-plus@1.0.0\r\n  │ ├─┬ bunyan@1.8.12\r\n  │ │ ├── dtrace-provider@0.8.7 deduped\r\n  │ │ ├── moment@2.22.2\r\n  │ │ ├─┬ mv@2.1.1\r\n  │ │ │ ├─┬ mkdirp@0.5.1\r\n  │ │ │ │ └── minimist@0.0.8\r\n  │ │ │ ├── ncp@2.0.0\r\n  │ │ │ └─┬ rimraf@2.4.5\r\n  │ │ │   └─┬ glob@6.0.4\r\n  │ │ │     ├─┬ inflight@1.0.6\r\n  │ │ │     │ ├── once@1.4.0 deduped\r\n  │ │ │     │ └── wrappy@1.0.2 deduped\r\n  │ │ │     ├── inherits@2.0.3 deduped\r\n  │ │ │     ├─┬ minimatch@3.0.4\r\n  │ │ │     │ └─┬ brace-expansion@1.1.11\r\n  │ │ │     │   ├── balanced-match@1.0.0\r\n  │ │ │     │   └── concat-map@0.0.1\r\n  │ │ │     ├── once@1.4.0 deduped\r\n  │ │ │     └── path-is-absolute@1.0.1\r\n  │ │ └── safe-json-stringify@1.2.0\r\n  │ ├─┬ clone-regexp@1.0.1\r\n  │ │ ├── is-regexp@1.0.0\r\n  │ │ └── is-supported-regexp-flag@1.0.1\r\n  │ ├─┬ csv@1.2.1\r\n  │ │ ├── csv-generate@1.1.2\r\n  │ │ ├── csv-parse@1.3.3\r\n  │ │ ├─┬ csv-stringify@1.1.2\r\n  │ │ │ └── lodash.get@4.4.2\r\n  │ │ └── stream-transform@0.2.2\r\n  │ ├─┬ dtrace-provider@0.8.7\r\n  │ │ └── nan@2.10.0\r\n  │ ├── escape-regexp-component@1.0.2\r\n  │ ├─┬ ewma@2.0.1\r\n  │ │ └── assert-plus@1.0.0 deduped\r\n  │ ├── formidable@1.2.1\r\n  │ ├─┬ http-signature@1.2.0\r\n  │ │ ├── assert-plus@1.0.0 deduped\r\n  │ │ ├─┬ jsprim@1.4.1\r\n  │ │ │ ├── assert-plus@1.0.0 deduped\r\n  │ │ │ ├── extsprintf@1.3.0 deduped\r\n  │ │ │ ├── json-schema@0.2.3\r\n  │ │ │ └── verror@1.10.0 deduped\r\n  │ │ └─┬ sshpk@1.14.2\r\n  │ │   ├── asn1@0.2.3\r\n  │ │   ├── assert-plus@1.0.0 deduped\r\n  │ │   ├─┬ bcrypt-pbkdf@1.0.1\r\n  │ │   │ └── tweetnacl@0.14.5 deduped\r\n  │ │   ├─┬ dashdash@1.14.1\r\n  │ │   │ └── assert-plus@1.0.0 deduped\r\n  │ │   ├─┬ ecc-jsbn@0.1.1\r\n  │ │   │ └── jsbn@0.1.1 deduped\r\n  │ │   ├─┬ getpass@0.1.7\r\n  │ │   │ └── assert-plus@1.0.0 deduped\r\n  │ │   ├── jsbn@0.1.1\r\n  │ │   ├── safer-buffer@2.1.2\r\n  │ │   └── tweetnacl@0.14.5\r\n  │ ├── lodash@4.17.10\r\n  │ ├─┬ lru-cache@4.1.3\r\n  │ │ ├── pseudomap@1.0.2\r\n  │ │ └── yallist@2.1.2\r\n  │ ├── mime@1.6.0\r\n  │ ├── negotiator@0.6.1\r\n  │ ├─┬ once@1.4.0\r\n  │ │ └── wrappy@1.0.2\r\n  │ ├── pidusage@1.2.0\r\n  │ ├── qs@6.5.2\r\n  │ ├─┬ restify-errors@5.0.0\r\n  │ │ ├── assert-plus@1.0.0 deduped\r\n  │ │ ├── lodash@4.17.10 deduped\r\n  │ │ ├── safe-json-stringify@1.2.0 deduped\r\n  │ │ └── verror@1.10.0 deduped\r\n  │ ├── semver@5.5.0\r\n  │ ├─┬ spdy@3.4.7\r\n  │ │ ├─┬ debug@2.6.9\r\n  │ │ │ └── ms@2.0.0\r\n  │ │ ├── handle-thing@1.2.5\r\n  │ │ ├── http-deceiver@1.2.7\r\n  │ │ ├── safe-buffer@5.1.2\r\n  │ │ ├── select-hose@2.0.0\r\n  │ │ └─┬ spdy-transport@2.1.0\r\n  │ │   ├── debug@2.6.9 deduped\r\n  │ │   ├── detect-node@2.0.3\r\n  │ │   ├─┬ hpack.js@2.1.6\r\n  │ │   │ ├── inherits@2.0.3\r\n  │ │   │ ├── obuf@1.1.2 deduped\r\n  │ │   │ ├── readable-stream@2.3.6 deduped\r\n  │ │   │ └── wbuf@1.7.3 deduped\r\n  │ │   ├── obuf@1.1.2\r\n  │ │   ├─┬ readable-stream@2.3.6\r\n  │ │   │ ├── core-util-is@1.0.2 deduped\r\n  │ │   │ ├── inherits@2.0.3 deduped\r\n  │ │   │ ├── isarray@1.0.0\r\n  │ │   │ ├── process-nextick-args@2.0.0\r\n  │ │   │ ├── safe-buffer@5.1.2 deduped\r\n  │ │   │ ├─┬ string_decoder@1.1.1\r\n  │ │   │ │ └── safe-buffer@5.1.2 deduped\r\n  │ │   │ └── util-deprecate@1.0.2\r\n  │ │   ├── safe-buffer@5.1.2 deduped\r\n  │ │   └─┬ wbuf@1.7.3\r\n  │ │     └── minimalistic-assert@1.0.1\r\n  │ ├── uuid@3.2.1\r\n  │ ├─┬ vasync@1.6.4\r\n  │ │ └─┬ verror@1.6.0\r\n  │ │   └── extsprintf@1.2.0\r\n  │ └─┬ verror@1.10.0\r\n  │   ├── assert-plus@1.0.0 deduped\r\n  │   ├── core-util-is@1.0.2\r\n  │   └── extsprintf@1.3.0\r\n  └── underscore@1.8.3\r\n\r\nnpm ERR! extraneous: color-convert@1.0.0 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/color-convert\r\nnpm ERR! extraneous: grunt@0.4.5 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt\r\nnpm ERR! extraneous: grunt-jasmine-nodejs@1.5.2 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt-jasmine-nodejs\r\nnpm ERR! extraneous: grunt-jslint@1.1.14 /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt-jslint\r\n```"}}
{"actor":{"display_login":"chriswatrous"}}