{"action":"created","issue":{"url":"https://api.github.com/repos/ConsenSys/eth-lightwallet/issues/46","labels_url":"https://api.github.com/repos/ConsenSys/eth-lightwallet/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/ConsenSys/eth-lightwallet/issues/46/comments","events_url":"https://api.github.com/repos/ConsenSys/eth-lightwallet/issues/46/events","html_url":"https://github.com/ConsenSys/eth-lightwallet/issues/46","id":121061329,"number":46,"title":"Not working when installed with NPM3","user":{"login":"simov","id":1694112,"avatar_url":"https://avatars.githubusercontent.com/u/1694112?v=3","gravatar_id":"","url":"https://api.github.com/users/simov","html_url":"https://github.com/simov","followers_url":"https://api.github.com/users/simov/followers","following_url":"https://api.github.com/users/simov/following{/other_user}","gists_url":"https://api.github.com/users/simov/gists{/gist_id}","starred_url":"https://api.github.com/users/simov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simov/subscriptions","organizations_url":"https://api.github.com/users/simov/orgs","repos_url":"https://api.github.com/users/simov/repos","events_url":"https://api.github.com/users/simov/events{/privacy}","received_events_url":"https://api.github.com/users/simov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-08T17:48:10Z","updated_at":"2015-12-09T16:53:39Z","closed_at":null,"body":"What error exactly do you get [here](https://github.com/ConsenSys/eth-lightwallet/blob/master/lib/keystore.js#L5-L7)?\r\n\r\nThis is bad practice and it should be resolved somehow. In NPM3 the node_modules directory structure is flat, so there is no such path when you install the module with NPM3.\r\n\r\nNode >5.0.0 is bundled with NPM3 by default, so this might be a problem for a lot of people."},"comment":{"url":"https://api.github.com/repos/ConsenSys/eth-lightwallet/issues/comments/163322129","html_url":"https://github.com/ConsenSys/eth-lightwallet/issues/46#issuecomment-163322129","issue_url":"https://api.github.com/repos/ConsenSys/eth-lightwallet/issues/46","id":163322129,"user":{"login":"simov","id":1694112,"avatar_url":"https://avatars.githubusercontent.com/u/1694112?v=3","gravatar_id":"","url":"https://api.github.com/users/simov","html_url":"https://github.com/simov","followers_url":"https://api.github.com/users/simov/followers","following_url":"https://api.github.com/users/simov/following{/other_user}","gists_url":"https://api.github.com/users/simov/gists{/gist_id}","starred_url":"https://api.github.com/users/simov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simov/subscriptions","organizations_url":"https://api.github.com/users/simov/orgs","repos_url":"https://api.github.com/users/simov/repos","events_url":"https://api.github.com/users/simov/events{/privacy}","received_events_url":"https://api.github.com/users/simov/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T16:53:39Z","updated_at":"2015-12-09T16:53:39Z","body":"It seems that they are checking for version mismatch, not for multiple instances in general, which is good.\r\n\r\nAs long as you have your dependency set in the exact same way as it is set in [bitcore-mnemonic](https://github.com/bitpay/bitcore-mnemonic/blob/master/package.json) \r\n\r\n```\r\n\"bitcore-lib\": \"^0.13.7\"\r\n```\r\n\r\nit should work. \r\n\r\nWhen using NPM2 it should download the latest version in both places, which currently is [0.13.11](https://www.npmjs.com/package/bitcore-lib). \r\n\r\nWhen NPM3 flattens out the directory structure it will create just one instance of the module under the root of node_modules, if both versions matches.\r\n\r\nYou need to `npm update` in your project's dir after you update your package.json, or just remove node_modules and make a clean install just to be sure."}}