{"action":"created","issue":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/303","labels_url":"https://api.github.com/repos/jxcore/jxcore/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/jxcore/jxcore/issues/303/comments","events_url":"https://api.github.com/repos/jxcore/jxcore/issues/303/events","html_url":"https://github.com/jxcore/jxcore/issues/303","id":68953029,"number":303,"title":"Error LNK2001 while installing node-canvas","user":{"login":"liebig","id":3033740,"avatar_url":"https://avatars.githubusercontent.com/u/3033740?v=3","gravatar_id":"","url":"https://api.github.com/users/liebig","html_url":"https://github.com/liebig","followers_url":"https://api.github.com/users/liebig/followers","following_url":"https://api.github.com/users/liebig/following{/other_user}","gists_url":"https://api.github.com/users/liebig/gists{/gist_id}","starred_url":"https://api.github.com/users/liebig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liebig/subscriptions","organizations_url":"https://api.github.com/users/liebig/orgs","repos_url":"https://api.github.com/users/liebig/repos","events_url":"https://api.github.com/users/liebig/events{/privacy}","received_events_url":"https://api.github.com/users/liebig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-04-16T15:49:24Z","updated_at":"2015-04-24T08:40:39Z","closed_at":"2015-04-17T11:55:55Z","body":"I am trying to install the great [node-canvas library](https://github.com/Automattic/node-canvas) but I am getting the error `error LNK2001: Nicht aufgelöstes externes Symbol \"\"`. I know that this library is difficult to install and it needs a global installation of node-gyp, Python 2.7 for Windows, Microsoft Visual C++ 2010 and GTK. But everything is installed and when I use `npm install canvas` instead of `jx install canvas` everything works great.\r\n\r\nI am running Windows 7 (x64) and here is the stack trace:\r\n```\r\nCanvas.obj : error LNK2001: Nicht aufgelöstes externes Symbol \"\"__declspec(dllim\r\nport) public: static class node::Buffer * __cdecl node::Buffer::New(char const *\r\n,unsigned __int64,class node::commons *)\" (__imp_?New@Buffer@node@@SAPEAV12@PEBD\r\n_KPEAVcommons@2@@Z)\". [D:\\canvas\\node_modules\\canvas\\build\\canvas.vcxproj]\r\nD:\\canvas\\node_modules\\canvas\\build\\Release\\canvas.node : fatal error LNK1120: 1 nicht aufgelöste Externe [D:\\canvas\\node_modules\\canvas\\build\\canvas.vcxproj]\r\ngypnpm ERR! canvas@1.1.6 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the canvas@1.1.6 install script.\r\nnpm ERR! This is most likely a problem with the canvas package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls canvas\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! System Windows_NT 6.1.7601\r\nnpm ERR! command \"jx\" \"D:\\\\Users\\\\U519642\\\\.jx\\\\npm\" \"install\" \"canvas\"\r\nnpm ERR! cwd D:\\canvas\\jxcore\r\nnpm ERR! node -v v0.10.38\r\nnpm ERR! npm -v 1.4.14\r\nnpm ERR! code ELIFECYCLE\r\nnpm\r\nD:\\canvas\\jxcore>jx install canvas > output.txt\r\nnpm WARN package.json gameboy@0.2.0 No repository field.\r\ngypnpm ERR! canvas@1.1.6 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the canvas@1.1.6 install script.\r\nnpm ERR! This is most likely a problem with the canvas package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls canvas\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! System Windows_NT 6.1.7601\r\nnpm ERR! command \"jx\" \"D:\\\\Users\\\\U519642\\\\.jx\\\\npm\" \"install\" \"canvas\"\r\nnpm ERR! cwd D:\\canvas\\jxcore\r\nnpm ERR! node -v v0.10.38\r\nnpm ERR! npm -v 1.4.14\r\nnpm ERR! code ELIFECYCLE\r\nnpm\r\n```\r\n\r\n`jx -v`: `v0.10.38`\r\n`jx -jxv`: `v Beta-0.3.0.0`\r\n\r\n`node -v`: `v0.10.28`\r\n`npm -v`: `1.4.9`\r\n\r\nI don't know if you can help me with this, because it could be a problem with the node-canvas library. But I want to give it a try.\r\n\r\nThank you,\r\nMarc"},"comment":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/comments/95853920","html_url":"https://github.com/jxcore/jxcore/issues/303#issuecomment-95853920","issue_url":"https://api.github.com/repos/jxcore/jxcore/issues/303","id":95853920,"user":{"login":"ktrzeciaknubisa","id":5946844,"avatar_url":"https://avatars.githubusercontent.com/u/5946844?v=3","gravatar_id":"","url":"https://api.github.com/users/ktrzeciaknubisa","html_url":"https://github.com/ktrzeciaknubisa","followers_url":"https://api.github.com/users/ktrzeciaknubisa/followers","following_url":"https://api.github.com/users/ktrzeciaknubisa/following{/other_user}","gists_url":"https://api.github.com/users/ktrzeciaknubisa/gists{/gist_id}","starred_url":"https://api.github.com/users/ktrzeciaknubisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktrzeciaknubisa/subscriptions","organizations_url":"https://api.github.com/users/ktrzeciaknubisa/orgs","repos_url":"https://api.github.com/users/ktrzeciaknubisa/repos","events_url":"https://api.github.com/users/ktrzeciaknubisa/events{/privacy}","received_events_url":"https://api.github.com/users/ktrzeciaknubisa/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T08:40:39Z","updated_at":"2015-04-24T08:40:39Z","body":"All right, there shouldn't be name conflict any more when calling `require(\"canvas\")` from inside `canvas.js` while *node_modules* stay on file system (ada3d02cd9ef319bce85dda62eb37796915d3118). \r\n\r\nThe previous fix I was thinking about was applied to *node_modules* embedded inside a package, but this was not the case now."}}