{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/629","repository_url":"https://api.github.com/repos/mapbox/node-sqlite3","labels_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/629/comments","events_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/629/events","html_url":"https://github.com/mapbox/node-sqlite3/issues/629","id":149817944,"number":629,"title":"prepublish fails due to hoisted nan","user":{"login":"maxogden","id":39759,"avatar_url":"https://avatars.githubusercontent.com/u/39759?v=3","gravatar_id":"","url":"https://api.github.com/users/maxogden","html_url":"https://github.com/maxogden","followers_url":"https://api.github.com/users/maxogden/followers","following_url":"https://api.github.com/users/maxogden/following{/other_user}","gists_url":"https://api.github.com/users/maxogden/gists{/gist_id}","starred_url":"https://api.github.com/users/maxogden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxogden/subscriptions","organizations_url":"https://api.github.com/users/maxogden/orgs","repos_url":"https://api.github.com/users/maxogden/repos","events_url":"https://api.github.com/users/maxogden/events{/privacy}","received_events_url":"https://api.github.com/users/maxogden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T16:19:56Z","updated_at":"2016-04-20T16:22:00Z","closed_at":"2016-04-20T16:22:00Z","body":"I use sqlite3 as a dependency along with another module that uses nan. At install time, npm hoists the shared common nan up to my top level `node_modules` folder, causing the sqlite3 prepublish here to fail: https://github.com/mapbox/node-sqlite3/blob/96da7da869a7deef5ded34a851242262c1c0b60c/package.json#L51\r\n\r\nThe reason is that the prepublish script expects all of the sqlite3 dependencies to be inside `sqlite3/node_modules` but doesn't take into account that npm will potentially move modules up a level\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/comments/212499594","html_url":"https://github.com/mapbox/node-sqlite3/issues/629#issuecomment-212499594","issue_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/629","id":212499594,"user":{"login":"maxogden","id":39759,"avatar_url":"https://avatars.githubusercontent.com/u/39759?v=3","gravatar_id":"","url":"https://api.github.com/users/maxogden","html_url":"https://github.com/maxogden","followers_url":"https://api.github.com/users/maxogden/followers","following_url":"https://api.github.com/users/maxogden/following{/other_user}","gists_url":"https://api.github.com/users/maxogden/gists{/gist_id}","starred_url":"https://api.github.com/users/maxogden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxogden/subscriptions","organizations_url":"https://api.github.com/users/maxogden/orgs","repos_url":"https://api.github.com/users/maxogden/repos","events_url":"https://api.github.com/users/maxogden/events{/privacy}","received_events_url":"https://api.github.com/users/maxogden/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T16:22:00Z","updated_at":"2016-04-20T16:22:00Z","body":"Actually just realized we probably shouldn't even be running `prepublish` in our usage :) So it's just an error on our end https://github.com/blahah/sciencefair/blob/fulltexts/package.json#L10"}}