{"action":"opened","issue":{"url":"https://api.github.com/repos/3dmol/3Dmol.js/issues/265","repository_url":"https://api.github.com/repos/3dmol/3Dmol.js","labels_url":"https://api.github.com/repos/3dmol/3Dmol.js/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/3dmol/3Dmol.js/issues/265/comments","events_url":"https://api.github.com/repos/3dmol/3Dmol.js/issues/265/events","html_url":"https://github.com/3dmol/3Dmol.js/issues/265","id":202470182,"number":265,"title":"Can't get published NPM version to work","user":{"login":"danielholmes","id":349833,"avatar_url":"https://avatars.githubusercontent.com/u/349833?v=3","gravatar_id":"","url":"https://api.github.com/users/danielholmes","html_url":"https://github.com/danielholmes","followers_url":"https://api.github.com/users/danielholmes/followers","following_url":"https://api.github.com/users/danielholmes/following{/other_user}","gists_url":"https://api.github.com/users/danielholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielholmes/subscriptions","organizations_url":"https://api.github.com/users/danielholmes/orgs","repos_url":"https://api.github.com/users/danielholmes/repos","events_url":"https://api.github.com/users/danielholmes/events{/privacy}","received_events_url":"https://api.github.com/users/danielholmes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-23T08:19:29Z","updated_at":"2017-01-23T08:19:29Z","closed_at":null,"body":"I tried using the published NPM module and ran into an issue. My app couldn't find the 3dmol module. To replicate:\r\n\r\n1. package.json\r\n```\r\n{\r\n  \"dependencies\": {\r\n    \"3dmol\": \"1.0.7\"\r\n  }\r\n}\r\n```\r\n2. `npm install`\r\n3. run.js\r\n```\r\nvar threeDMol = require('3dmol');\r\nconsole.log(threeDMol);\r\n```\r\n4. `node run.js`\r\n\r\nError:\r\n\r\n> module.js:474\r\n>     throw err;\r\n>     ^\r\n> \r\n> Error: Cannot find module '3dmol'\r\n>     at Function.Module._resolveFilename (module.js:472:15)\r\n>     at Function.Module._load (module.js:420:25)\r\n>     at Module.require (module.js:500:17)\r\n>     at require (internal/module.js:20:19)\r\n>     at Object.<anonymous> (/Volumes/data/projects/3dmol-test/run.js:1:79)\r\n>     at Module._compile (module.js:573:32)\r\n>     at Object.Module._extensions..js (module.js:582:10)\r\n>     at Module.load (module.js:490:32)\r\n>     at tryModuleLoad (module.js:449:12)\r\n>     at Function.Module._load (module.js:441:3)\r\n\r\n\r\nUsing a clone of the latest repo works fine though (i.e. same example just using the following `package.json` where `../3Dmol.js` is a fresh cloned version of the repo\r\n\r\n```\r\n{\r\n  \"dependencies\": {\r\n    \"3dmol\": \"../3Dmol.js\"\r\n  }\r\n}\r\n```\r\n\r\nCould you please publish the latest version to NPM? By the looks of it I think you're the only person with the right permissions @helblazer811 "}}
{"actor":{"display_login":"danielholmes"}}