{"action":"created","issue":{"url":"https://api.github.com/repos/kevva/download-status/issues/7","labels_url":"https://api.github.com/repos/kevva/download-status/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kevva/download-status/issues/7/comments","events_url":"https://api.github.com/repos/kevva/download-status/issues/7/events","html_url":"https://github.com/kevva/download-status/issues/7","id":57695172,"number":7,"title":"use(progress()) returns 'Undefined is not a function","user":{"login":"kaidez","id":625892,"avatar_url":"https://avatars.githubusercontent.com/u/625892?v=3","gravatar_id":"","url":"https://api.github.com/users/kaidez","html_url":"https://github.com/kaidez","followers_url":"https://api.github.com/users/kaidez/followers","following_url":"https://api.github.com/users/kaidez/following{/other_user}","gists_url":"https://api.github.com/users/kaidez/gists{/gist_id}","starred_url":"https://api.github.com/users/kaidez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaidez/subscriptions","organizations_url":"https://api.github.com/users/kaidez/orgs","repos_url":"https://api.github.com/users/kaidez/repos","events_url":"https://api.github.com/users/kaidez/events{/privacy}","received_events_url":"https://api.github.com/users/kaidez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-14T14:46:37Z","updated_at":"2015-02-14T20:36:01Z","closed_at":"2015-02-14T20:20:49Z","body":"When placing the following code in index.js:\r\n\r\n    var Download = require('download');\r\n    var progress = require('download-status');\r\n\r\n    var download = new Download({ strip: 1 })\r\n       .get('myfile.txt')\r\n       .dest('path/to/my/folder')\r\n       .use(progress());\r\n\r\n    download.run(function (err) {\r\n       if (err) {\r\n         throw err;\r\n       }\r\n\r\n      console.log('Download finished!');\r\n    });\r\n\r\nAnd then running `node index.js`, the following error is returned:\r\n\r\n    /Users/me/path/to/my/repo/index.js:7\r\n        .use(progress());\r\n         ^\r\n    TypeError: undefined is not a function\r\n        at Object.<anonymous> (/Users/me/path/to/my/repo/index.js:7:6)\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 Function.Module.runMain (module.js:501:10)\r\n        at startup (node.js:129:16)\r\n        at node.js:814:3\r\n\r\nBoth module are in `node_modules` and I uninstalled/reinstalled them at various points. I also uninstalled/reinstalled node.\r\n\r\nRunning node v0.12.0"},"comment":{"url":"https://api.github.com/repos/kevva/download-status/issues/comments/74390917","html_url":"https://github.com/kevva/download-status/issues/7#issuecomment-74390917","issue_url":"https://api.github.com/repos/kevva/download-status/issues/7","id":74390917,"user":{"login":"kaidez","id":625892,"avatar_url":"https://avatars.githubusercontent.com/u/625892?v=3","gravatar_id":"","url":"https://api.github.com/users/kaidez","html_url":"https://github.com/kaidez","followers_url":"https://api.github.com/users/kaidez/followers","following_url":"https://api.github.com/users/kaidez/following{/other_user}","gists_url":"https://api.github.com/users/kaidez/gists{/gist_id}","starred_url":"https://api.github.com/users/kaidez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaidez/subscriptions","organizations_url":"https://api.github.com/users/kaidez/orgs","repos_url":"https://api.github.com/users/kaidez/repos","events_url":"https://api.github.com/users/kaidez/events{/privacy}","received_events_url":"https://api.github.com/users/kaidez/received_events","type":"User","site_admin":false},"created_at":"2015-02-14T20:36:01Z","updated_at":"2015-02-14T20:36:01Z","body":":-)"}}