{"action":"created","issue":{"url":"https://api.github.com/repos/yanyiwu/nodejieba/issues/64","repository_url":"https://api.github.com/repos/yanyiwu/nodejieba","labels_url":"https://api.github.com/repos/yanyiwu/nodejieba/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/yanyiwu/nodejieba/issues/64/comments","events_url":"https://api.github.com/repos/yanyiwu/nodejieba/issues/64/events","html_url":"https://github.com/yanyiwu/nodejieba/issues/64","id":169355401,"number":64,"title":"version 2.2.2 Can't build on Win 10 x64","user":{"login":"tw0517tw","id":1003146,"avatar_url":"https://avatars.githubusercontent.com/u/1003146?v=3","gravatar_id":"","url":"https://api.github.com/users/tw0517tw","html_url":"https://github.com/tw0517tw","followers_url":"https://api.github.com/users/tw0517tw/followers","following_url":"https://api.github.com/users/tw0517tw/following{/other_user}","gists_url":"https://api.github.com/users/tw0517tw/gists{/gist_id}","starred_url":"https://api.github.com/users/tw0517tw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tw0517tw/subscriptions","organizations_url":"https://api.github.com/users/tw0517tw/orgs","repos_url":"https://api.github.com/users/tw0517tw/repos","events_url":"https://api.github.com/users/tw0517tw/events{/privacy}","received_events_url":"https://api.github.com/users/tw0517tw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-04T11:47:04Z","updated_at":"2016-11-16T12:59:26Z","closed_at":"2016-08-04T16:46:14Z","body":"```\n> nodejieba@2.2.2 install D:\\------\\node_modules\\nodejieba\n> node-gyp rebuild\n\n\nD:\\------\\node_modules\\nodejieba>if not defined npm_config_node_gyp (node \"C:\\Users\\------\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\\n..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild )  else (node \"\" rebuild )\n在這個方案中一次建置一個專案。若要啟用平行組建，請加入 \"/m\" 參數。\n  index.cpp\n  nodejieba.cpp\nd:\\------\\node_modules\\nodejieba\\lib\\utils.h(19): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling\nsource file ..\\lib\\index.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\lib\\utils.h(19): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling\nsource file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\lib\\utils.h(35): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling\nsource file ..\\lib\\index.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\lib\\utils.h(35): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling\nsource file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\lib\\utils.h(51): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling\nsource file ..\\lib\\index.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\lib\\utils.h(51): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of data (compiling\nsource file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nan\\nan_new.h(208): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data (compiling source file\n..\\lib\\index.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\n  d:\\------\\node_modules\\nodejieba\\lib\\utils.h(17): note: see reference to function template instantiation 'v8::Local<v8::Array> Nan::New<v8::Array,un\n  signed __int64>(A0)' being compiled\n          with\n          [\n              A0=unsigned __int64\n          ] (compiling source file ..\\lib\\index.cpp)\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\Unicode.hpp(141): warning C4267: 'argument': conversion from 'size_t' to 'uint32_t', possible loss of d\nata (compiling source file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\SegmentBase.hpp : warning C4819: The file contains a character that cannot be represented in the curren\nt code page (950). Save the file in Unicode format to prevent data loss (compiling source file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\n\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\SegmentBase.hpp(11): error C2001: newline in constant (compiling source file ..\\lib\\nodejieba.cpp) [D:\\\n------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\SegmentBase.hpp(13): error C2143: syntax error: missing ';' before 'using namespace' (compiling source\nfile ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\FullSegment.hpp(76): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (comp\niling source file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\SegmentTagged.hpp(8): warning C4099: 'cppjieba::DictTrie': type name first seen using 'class' now seen\nusing 'struct' (compiling source file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\n  d:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\DictTrie.hpp(27): note: see declaration of 'cppjieba::DictTrie' (compiling source file ..\\lib\\nodejie\n  ba.cpp)\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\SegmentTagged.hpp(19): warning C4099: 'cppjieba::DictTrie': type name first seen using 'class' now seen\n using 'struct' (compiling source file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\n  d:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\SegmentTagged.hpp(8): note: see declaration of 'cppjieba::DictTrie' (compiling source file ..\\lib\\nod\n  ejieba.cpp)\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\HMMSegment.hpp(162): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data (comp\niling source file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\nd:\\------\\node_modules\\nodejieba\\deps\\cppjieba\\HMMSegment.hpp(178): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of\n data (compiling source file ..\\lib\\nodejieba.cpp) [D:\\------\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\ngyp ERR! build error\ngyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\ngyp ERR! stack     at ChildProcess.onExit (C:\\Users\\------\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:276:23)\ngyp ERR! stack     at emitTwo (events.js:106:13)\ngyp ERR! stack     at ChildProcess.emit (events.js:191:7)\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\ngyp ERR! System Windows_NT 10.0.14393\ngyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\------\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.j\ns\" \"rebuild\"\ngyp ERR! cwd D:\\------\\node_modules\\nodejieba\ngyp ERR! node -v v6.2.2\ngyp ERR! node-gyp -v v3.3.1\ngyp ERR! not ok\nnpm WARN optional Skipping failed optional dependency /chokidar/fsevents:\nnpm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14\nnpm ERR! Windows_NT 10.0.14393\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\------\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"i\" \"-std=c++11\"\nnpm ERR! node v6.2.2\nnpm ERR! npm  v3.8.7\nnpm ERR! code ELIFECYCLE\n\nnpm ERR! nodejieba@2.2.2 install: `node-gyp rebuild`\nnpm ERR! Exit status 1\nnpm ERR!\nnpm ERR! Failed at the nodejieba@2.2.2 install script 'node-gyp rebuild'.\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\nnpm ERR! If you do, this is most likely a problem with the nodejieba package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR!     node-gyp rebuild\nnpm ERR! You can get information on how to open an issue for this project with:\nnpm ERR!     npm bugs nodejieba\nnpm ERR! Or if that isn't available, you can get their info via:\nnpm ERR!     npm owner ls nodejieba\nnpm ERR! There is likely additional logging output above.\n\nnpm ERR! Please include the following file with any support request:\n```\n"},"comment":{"url":"https://api.github.com/repos/yanyiwu/nodejieba/issues/comments/260940243","html_url":"https://github.com/yanyiwu/nodejieba/issues/64#issuecomment-260940243","issue_url":"https://api.github.com/repos/yanyiwu/nodejieba/issues/64","id":260940243,"user":{"login":"puregardenia","id":14371054,"avatar_url":"https://avatars.githubusercontent.com/u/14371054?v=3","gravatar_id":"","url":"https://api.github.com/users/puregardenia","html_url":"https://github.com/puregardenia","followers_url":"https://api.github.com/users/puregardenia/followers","following_url":"https://api.github.com/users/puregardenia/following{/other_user}","gists_url":"https://api.github.com/users/puregardenia/gists{/gist_id}","starred_url":"https://api.github.com/users/puregardenia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puregardenia/subscriptions","organizations_url":"https://api.github.com/users/puregardenia/orgs","repos_url":"https://api.github.com/users/puregardenia/repos","events_url":"https://api.github.com/users/puregardenia/events{/privacy}","received_events_url":"https://api.github.com/users/puregardenia/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T12:59:26Z","updated_at":"2016-11-16T12:59:26Z","body":"@huguoba 好吧，我用 nvm-windows 包，切换node到4.6也是可以的，哈哈！"}}
{"actor":{"display_login":"puregardenia"}}