{"action":"opened","issue":{"url":"https://api.github.com/repos/esdoc2/esdoc2/issues/5","repository_url":"https://api.github.com/repos/esdoc2/esdoc2","labels_url":"https://api.github.com/repos/esdoc2/esdoc2/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/esdoc2/esdoc2/issues/5/comments","events_url":"https://api.github.com/repos/esdoc2/esdoc2/issues/5/events","html_url":"https://github.com/esdoc2/esdoc2/issues/5","id":281735678,"number":5,"title":"Missing npmlog and mkdirp packages on first install","user":{"login":"22a","id":7144173,"avatar_url":"https://avatars0.githubusercontent.com/u/7144173?v=4","gravatar_id":"","url":"https://api.github.com/users/22a","html_url":"https://github.com/22a","followers_url":"https://api.github.com/users/22a/followers","following_url":"https://api.github.com/users/22a/following{/other_user}","gists_url":"https://api.github.com/users/22a/gists{/gist_id}","starred_url":"https://api.github.com/users/22a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/22a/subscriptions","organizations_url":"https://api.github.com/users/22a/orgs","repos_url":"https://api.github.com/users/22a/repos","events_url":"https://api.github.com/users/22a/events{/privacy}","received_events_url":"https://api.github.com/users/22a/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-13T12:41:17Z","updated_at":"2017-12-13T12:41:17Z","closed_at":null,"author_association":"NONE","body":"### Subject of the issue\r\nESDoc2 fails to run in a clean environment.\r\n\r\n### Your environment\r\n* version of OS: macOS 10.13.1 (17B1003)\r\n* version of node js: v8.9.1\r\n* version of ESDoc2: \r\n```json\r\n  \"dependencies\": {\r\n    \"esdoc2\": \"^2.1.1\",\r\n    \"esdoc2-standard-plugin\": \"^2.1.0\"\r\n  }\r\n```\r\n\r\n### Steps to reproduce\r\n```\r\nmkdir foo && cd foo\r\n```\r\n```\r\nyarn init -y\r\n```\r\n```\r\nyarn add esdoc2 esdoc2-standard-plugin\r\n```\r\n```\r\n./node_modules/.bin/esdoc2\r\n```\r\n\r\n### Expected behaviour\r\nI would expect esdoc2 to run and present this message:\r\n```\r\nESDoc2 info using node@v8.9.1\r\nESDoc2 info using esdoc2@2.1.1\r\nESDoc2 info config null\r\nUsage: esdoc [-c esdoc.json]\r\n\r\nOptions:\r\n  -c specify config file\r\n  -h output usage information\r\n  -v output the version number\r\n\r\nesdoc2 finds configuration by the order:\r\n  1. `-c your-esdoc.json`\r\n  2. `.esdoc.json` in current directory\r\n  3. `.esdoc.js` in current directory\r\n  4. `esdoc` property in package.json\r\n```\r\n\r\n### Actual behaviour\r\nIt complains about a missing `npmlog` package:\r\n```\r\nmodule.js:538\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'npmlog'\r\n    at Function.Module._resolveFilename (module.js:536:15)\r\n    at Function.Module._load (module.js:466:25)\r\n    at Module.require (module.js:579:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.<anonymous> (/Users/peter/Desktop/foo/node_modules/esdoc2/out/src/Factory/DocFactory.js:9:15)\r\n    at Module._compile (module.js:635:30)\r\n    at Object.Module._extensions..js (module.js:646:10)\r\n    at Module.load (module.js:554:32)\r\n    at tryModuleLoad (module.js:497:12)\r\n    at Function.Module._load (module.js:489:3)\r\n```\r\nand after I\r\n```\r\nyarn add npmlog\r\n```\r\nit complains about a missing `mkdirp` package:\r\n```\r\nmodule.js:538\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'mkdirp'\r\n    at Function.Module._resolveFilename (module.js:536:15)\r\n    at Function.Module._load (module.js:466:25)\r\n    at Module.require (module.js:579:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.<anonymous> (/Users/peter/Desktop/foo/node_modules/esdoc2/out/src/ESDoc.js:53:15)\r\n    at Module._compile (module.js:635:30)\r\n    at Object.Module._extensions..js (module.js:646:10)\r\n    at Module.load (module.js:554:32)\r\n    at tryModuleLoad (module.js:497:12)\r\n    at Function.Module._load (module.js:489:3)\r\n```\r\nfinally after I\r\n```\r\nyarn add mkdirp\r\n```\r\n\r\nesdoc2 runs successfully.\r\n\r\nAre `npmlog` and `mkdirp` expected to be installed globally? If not, could they be added as dependencies to ESDoc2?"}}
{"actor":{"display_login":"22a"}}