{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/658","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/658/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/658/events","html_url":"https://github.com/Microsoft/vscode/issues/658","id":118914382,"number":658,"title":"Native node modules from extensions","user":{"login":"aaronpowell","id":434140,"avatar_url":"https://avatars.githubusercontent.com/u/434140?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronpowell","html_url":"https://github.com/aaronpowell","followers_url":"https://api.github.com/users/aaronpowell/followers","following_url":"https://api.github.com/users/aaronpowell/following{/other_user}","gists_url":"https://api.github.com/users/aaronpowell/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronpowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronpowell/subscriptions","organizations_url":"https://api.github.com/users/aaronpowell/orgs","repos_url":"https://api.github.com/users/aaronpowell/repos","events_url":"https://api.github.com/users/aaronpowell/events{/privacy}","received_events_url":"https://api.github.com/users/aaronpowell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/feature%20request","name":"feature request","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-25T20:08:44Z","updated_at":"2015-12-03T08:39:38Z","closed_at":null,"body":"I’m looking to build an extension but one of the packages I need to depend on is a native module. When I do an `npm install` it installs the package just fine, I can launch a node shell and interact with it, etc. But when I go to use the package from within my plugin I get an error as it’s trying to load the ia32 build of the native module not the x64 which was compiled by node-gyp.\r\n\r\nA quick bit of debugging indicates that the problem stems by `process.arch` returning `ia32` when running in VS Code when my machine is a x64 machine (Win10 x64).\r\n\r\nSo is there some way to either:\r\n\r\n* Have VS Code run an x64 process\r\n* Have VS Code’s ia32 process do my npm restore (and subsequent compile with node-gyp)\r\n\r\nOtherwise I fear that my extension might be dead in the water :frowning: "},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/161551904","html_url":"https://github.com/Microsoft/vscode/issues/658#issuecomment-161551904","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/658","id":161551904,"user":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T08:39:37Z","updated_at":"2015-12-03T08:39:37Z","body":"Very tricky and it's exactly the reason why we haven't tackled this yet: every user that would install your extension would need the build tooling installed in their system (VS, gcc, etc.)."}}