{"action":"created","issue":{"url":"https://api.github.com/repos/lipsumar/dsf-example-project/issues/1","repository_url":"https://api.github.com/repos/lipsumar/dsf-example-project","labels_url":"https://api.github.com/repos/lipsumar/dsf-example-project/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lipsumar/dsf-example-project/issues/1/comments","events_url":"https://api.github.com/repos/lipsumar/dsf-example-project/issues/1/events","html_url":"https://github.com/lipsumar/dsf-example-project/issues/1","id":150331413,"number":1,"title":"Error: Cannot find module 'async'","user":{"login":"Macxim","id":1909957,"avatar_url":"https://avatars.githubusercontent.com/u/1909957?v=3","gravatar_id":"","url":"https://api.github.com/users/Macxim","html_url":"https://github.com/Macxim","followers_url":"https://api.github.com/users/Macxim/followers","following_url":"https://api.github.com/users/Macxim/following{/other_user}","gists_url":"https://api.github.com/users/Macxim/gists{/gist_id}","starred_url":"https://api.github.com/users/Macxim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Macxim/subscriptions","organizations_url":"https://api.github.com/users/Macxim/orgs","repos_url":"https://api.github.com/users/Macxim/repos","events_url":"https://api.github.com/users/Macxim/events{/privacy}","received_events_url":"https://api.github.com/users/Macxim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-22T10:21:37Z","updated_at":"2016-04-22T11:11:47Z","closed_at":"2016-04-22T11:11:47Z","body":"When running `npm run dsf` for the first time, I get this:\r\n```zsh\r\n~/code/dsf-example-project master  \r\n❯ npm run dsf\r\n\r\n> dsf-example-project@0.0.0 dsf /Users/macxim/code/dsf-example-project\r\n> node node_modules/design-system-framework/cli.js\r\n\r\n   ⌜                         ⌝\r\n     Design System Framework  \r\n   ⌞                         ⌟\r\n\r\nmodule.js:338\r\n    throw err;\r\n    ^\r\nError: Cannot find module 'async'\r\n    at Function.Module._resolveFilename (module.js:336:15)\r\n    at Function.Module._load (module.js:278:25)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/Users/macxim/code/dsf-example-project/node_modules/design-system-framework/models/ComponentCandidate.js:4:10)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n\r\nnpm ERR! Darwin 15.4.0\r\nnpm ERR! argv \"/Users/macxim/.nvm/versions/node/v0.12.7/bin/node\" \"/Users/macxim/.nvm/versions/node/v0.12.7/bin/npm\" \"run\" \"dsf\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! dsf-example-project@0.0.0 dsf: `node node_modules/design-system-framework/cli.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the dsf-example-project@0.0.0 dsf script 'node node_modules/design-system-framework/cli.js'.\r\nnpm ERR! This is most likely a problem with the dsf-example-project package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node node_modules/design-system-framework/cli.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls dsf-example-project\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/macxim/code/dsf-example-project/npm-debug.log\r\n\r\n```\r\nFYI:\r\n```zsh\r\n❯❯ npm -v\r\n2.14.2                                                                                                                                                          \r\n❯❯ node -v\r\nv4.0.0\r\n```\r\nThen, I just `npm install async`, and I got:\r\n\r\n```console\r\npath.js:8\r\n    throw new TypeError('Path must be a string. Received ' +\r\n    ^\r\n\r\nTypeError: Path must be a string. Received undefined\r\n    at assertPath (path.js:8:11)\r\n    at Object.posix.join (path.js:477:5)\r\n    at ComponentBase.getGlobPath (/Users/macxim/code/dsf-example-project/node_modules/design-system-framework/models/ComponentBase.js:12:14)\r\n    at ComponentBase.ComponentCandidate.hasResource (/Users/macxim/code/dsf-example-project/node_modules/design-system-framework/models/ComponentCandidate.js:24:12)\r\n    at /Users/macxim/code/dsf-example-project/node_modules/async/lib/async.js:356:13\r\n    at async.forEachOf.async.eachOf (/Users/macxim/code/dsf-example-project/node_modules/async/lib/async.js:233:13)\r\n    at _asyncMap (/Users/macxim/code/dsf-example-project/node_modules/async/lib/async.js:355:9)\r\n    at Object.map (/Users/macxim/code/dsf-example-project/node_modules/async/lib/async.js:337:20)\r\n    at ComponentBase.ComponentCandidate.resolve (/Users/macxim/code/dsf-example-project/node_modules/design-system-framework/models/ComponentCandidate.js:14:8)\r\n    at addComponentPathCandidate (/Users/macxim/code/dsf-example-project/node_modules/design-system-framework/lib/dsf.js:72:12)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/lipsumar/dsf-example-project/issues/comments/213382686","html_url":"https://github.com/lipsumar/dsf-example-project/issues/1#issuecomment-213382686","issue_url":"https://api.github.com/repos/lipsumar/dsf-example-project/issues/1","id":213382686,"user":{"login":"lipsumar","id":1191418,"avatar_url":"https://avatars.githubusercontent.com/u/1191418?v=3","gravatar_id":"","url":"https://api.github.com/users/lipsumar","html_url":"https://github.com/lipsumar","followers_url":"https://api.github.com/users/lipsumar/followers","following_url":"https://api.github.com/users/lipsumar/following{/other_user}","gists_url":"https://api.github.com/users/lipsumar/gists{/gist_id}","starred_url":"https://api.github.com/users/lipsumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lipsumar/subscriptions","organizations_url":"https://api.github.com/users/lipsumar/orgs","repos_url":"https://api.github.com/users/lipsumar/repos","events_url":"https://api.github.com/users/lipsumar/events{/privacy}","received_events_url":"https://api.github.com/users/lipsumar/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T11:11:47Z","updated_at":"2016-04-22T11:11:47Z","body":"yep, i get that too. I believe this is because the user config is not correctly merged.\r\nIt was fixed in design-system-framework 0.1.1\r\nI forgot to update the example project, so you are running 0.1.0\r\nI just pushed the fix to the example project.\r\n\r\nPlease run:\r\n`$ git pull`\r\n`$ npm install`\r\n`$ npm run dsf`"}}