{"action":"created","issue":{"url":"https://api.github.com/repos/Mrminfive/hexo-theme-skapp/issues/68","repository_url":"https://api.github.com/repos/Mrminfive/hexo-theme-skapp","labels_url":"https://api.github.com/repos/Mrminfive/hexo-theme-skapp/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/Mrminfive/hexo-theme-skapp/issues/68/comments","events_url":"https://api.github.com/repos/Mrminfive/hexo-theme-skapp/issues/68/events","html_url":"https://github.com/Mrminfive/hexo-theme-skapp/issues/68","id":337776995,"node_id":"MDU6SXNzdWUzMzc3NzY5OTU=","number":68,"title":"I got erros when running server with skapp","user":{"login":"Rikusen0335","id":19174234,"node_id":"MDQ6VXNlcjE5MTc0MjM0","avatar_url":"https://avatars0.githubusercontent.com/u/19174234?v=4","gravatar_id":"","url":"https://api.github.com/users/Rikusen0335","html_url":"https://github.com/Rikusen0335","followers_url":"https://api.github.com/users/Rikusen0335/followers","following_url":"https://api.github.com/users/Rikusen0335/following{/other_user}","gists_url":"https://api.github.com/users/Rikusen0335/gists{/gist_id}","starred_url":"https://api.github.com/users/Rikusen0335/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rikusen0335/subscriptions","organizations_url":"https://api.github.com/users/Rikusen0335/orgs","repos_url":"https://api.github.com/users/Rikusen0335/repos","events_url":"https://api.github.com/users/Rikusen0335/events{/privacy}","received_events_url":"https://api.github.com/users/Rikusen0335/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-03T07:30:59Z","updated_at":"2018-07-03T10:45:07Z","closed_at":null,"author_association":"NONE","body":"First, I got this error.\r\n\r\n<details><summary>Error1</summary>07:07:35.202 ERROR Script load failed: themes\\hexo-theme-skapp\\scripts\\renderer.js\r\nError: Cannot find module 'lunr'\r\n    at Function.Module._resolveFilename (module.js:547:15)\r\n    at Function.Module._load (module.js:474:25)\r\n    at Module.require (module.js:596:17)\r\n    at require (E:\\hexo\\sites\\blog\\node_modules\\hexo\\lib\\hexo\\index.js:219:21)\r\n    at E:\\hexo\\sites\\blog\\themes\\hexo-theme-skapp\\scripts\\renderer.js:5:16\r\n    at fs.readFile.then.script (E:\\hexo\\sites\\blog\\node_modules\\hexo\\lib\\hexo\\index.js:232:12)\r\n    at tryCatcher (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:512:31)\r\n    at Promise._settlePromise (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:569:18)\r\n    at Promise._settlePromise0 (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:614:10)\r\n    at Promise._settlePromises (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:693:18)\r\n    at Promise._fulfill (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:638:18)\r\n    at Promise._resolveCallback (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:432:57)\r\n    at Promise._settlePromiseFromHandler (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:524:17)\r\n    at Promise._settlePromise (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:569:18)\r\n    at Promise._settlePromise0 (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:614:10)\r\n    at Promise._settlePromises (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:693:18)\r\n    at Promise._fulfill (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise.js:638:18)\r\n    at E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\nodeback.js:42:21\r\n    at E:\\hexo\\sites\\blog\\node_modules\\graceful-fs\\graceful-fs.js:78:16\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)</details>\r\n\r\nThen, I did this command to install.\r\n`npm install lunr`\r\n\r\nIt seems like errors are fixed, but another error happened.\r\n\r\n<details><summary>Error2</summary>07:11:37.312 DEBUG Generator: category\r\n07:11:37.315 FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html\r\nTypeError: searchIdx.add is not a function\r\n    at E:\\hexo\\sites\\blog\\themes\\hexo-theme-skapp\\scripts\\renderer.js:94:23\r\n    at Array.forEach (<anonymous>)\r\n    at Hexo.<anonymous> (E:\\hexo\\sites\\blog\\themes\\hexo-theme-skapp\\scripts\\renderer.js:75:22)\r\n    at Hexo.tryCatcher (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\util.js:16:23)\r\n    at Hexo.<anonymous> (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\method.js:15:34)\r\n    at Promise.map.key (E:\\hexo\\sites\\blog\\node_modules\\hexo\\lib\\hexo\\index.js:336:26)\r\n    at tryCatcher (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\util.js:16:23)\r\n    at MappingPromiseArray._promiseFulfilled (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\map.js:61:38)\r\n    at MappingPromiseArray.PromiseArray._iterate (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise_array.js:114:31)\r\n    at MappingPromiseArray.init (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\promise_array.js:78:10)\r\n    at MappingPromiseArray._asyncInit (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\map.js:30:10)\r\n    at Async._drainQueue (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\async.js:138:12)\r\n    at Async._drainQueues (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\async.js:143:10)\r\n    at Immediate.Async.drainQueues (E:\\hexo\\sites\\blog\\node_modules\\bluebird\\js\\release\\async.js:17:14)\r\n    at runCallback (timers.js:810:20)\r\n    at tryOnImmediate (timers.js:768:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:745:5)</details>\r\n\r\nThere is no solution (I mean URL in error log).\r\n\r\nWell, I thought I have to download `mamboer/lunr.js`\r\nSo I did this command `npm install mamboer/lunr.js`\r\n\r\nThen this error happened.\r\n\r\n<details><summary>Error3</summary>E:\\hexo\\sites\\blog>npm install mamboer/lunr.js\r\n\r\n> nodejieba@2.2.6 install E:\\hexo\\sites\\blog\\node_modules\\nodejieba\r\n> node-gyp rebuild\r\n\r\n\r\nE:\\hexo\\sites\\blog\\node_modules\\nodejieba>if not defined npm_config_node_gyp (node \"C:\\Users\\lemiliam\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild )  else (node \"C:\\Users\\lemiliam\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild )\r\nこのソリューション内のプロジェクトを 1 度に 1 つずつビルドします。並行ビルドを有効にするには、\"/m\" スイッチを追加してく ださい。\r\nC:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\V140\\Platforms\\x64\\PlatformToolsets\\v140\\Toolset.targets(36,5): error\r\n MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK vers\r\nion in the project property pages or by right-clicking the solution and selecting \"Retarget solution\". [E:\\hexo\\sites\\b\r\nlog\\node_modules\\nodejieba\\build\\nodejieba.vcxproj]\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onExit (C:\\Users\\lemiliam\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:258:23)\r\ngyp ERR! stack     at emitTwo (events.js:126:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:214:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)\r\ngyp ERR! System Windows_NT 10.0.17134\r\ngyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\lemiliam\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd E:\\hexo\\sites\\blog\\node_modules\\nodejieba\r\ngyp ERR! node -v v8.11.3\r\ngyp ERR! node-gyp -v v3.6.2\r\ngyp ERR! not ok\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\\fsevents):\r\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"win32\",\"arch\":\"x64\"})\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! nodejieba@2.2.6 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the nodejieba@2.2.6 install script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     C:\\Users\\lemiliam\\AppData\\Roaming\\npm-cache\\_logs\\2018-07-03T07_13_28_445Z-debug.log</details>\r\n\r\n> このソリューション内のプロジェクトを 1 度に 1 つずつビルドします。並行ビルドを有効にするには、\"/m\" スイッチを追加してください。\r\n\r\nThis means \"Build the projects in this solution one at a time. To enable concurrent builds, add the \"/ m\" switch.\", so this is unrelated.\r\n\r\n\r\nWell, I ran a command `node-gyp rebuild` because written.\r\nBut then the error has come again.\r\n\r\n<details><summary>Error4</summary>E:\\hexo\\sites\\blog>node-gyp rebuild\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@3.7.0\r\ngyp info using node@8.11.3 | win32 | x64\r\ngyp info spawn C:\\Users\\lemiliam\\.windows-build-tools\\python27\\python.exe\r\ngyp info spawn args [ 'C:\\\\Users\\\\lemiliam\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\node-gyp\\\\gyp\\\\gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'msvs',\r\ngyp info spawn args   '-G',\r\ngyp info spawn args   'msvs_version=2015',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'E:\\\\hexo\\\\sites\\\\blog\\\\build\\\\config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\Users\\\\lemiliam\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\node-gyp\\\\addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   'C:\\\\Users\\\\lemiliam\\\\.node-gyp\\\\8.11.3\\\\include\\\\node\\\\common.gypi',\r\ngyp info spawn args   '-Dlibrary=shared_library',\r\ngyp info spawn args   '-Dvisibility=default',\r\ngyp info spawn args   '-Dnode_root_dir=C:\\\\Users\\\\lemiliam\\\\.node-gyp\\\\8.11.3',\r\ngyp info spawn args   '-Dnode_gyp_dir=C:\\\\Users\\\\lemiliam\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\node-gyp',\r\ngyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\lemiliam\\\\.node-gyp\\\\8.11.3\\\\<(target_arch)\\\\node.lib',\r\ngyp info spawn args   '-Dmodule_root_dir=E:\\\\hexo\\\\sites\\\\blog',\r\ngyp info spawn args   '-Dnode_engine=v8',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '--no-parallel',\r\ngyp info spawn args   '--generator-output',\r\ngyp info spawn args   'E:\\\\hexo\\\\sites\\\\blog\\\\build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\ngyp: binding.gyp not found (cwd: E:\\hexo\\sites\\blog) while trying to load binding.gyp\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (C:\\Users\\lemiliam\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\lib\\configure.js:345:16)\r\ngyp ERR! stack     at emitTwo (events.js:126:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:214:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)\r\ngyp ERR! System Windows_NT 10.0.17134\r\ngyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\lemiliam\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd E:\\hexo\\sites\\blog\r\ngyp ERR! node -v v8.11.3\r\ngyp ERR! node-gyp -v v3.7.0\r\ngyp ERR! not ok</details>\r\n\r\nI can't think other solution, so I opening issue. Are there any solutions?\r\n\r\n\r\n[Other Information]\r\nWindows 10 64bit\r\nnpm version: 6.1.0"},"comment":{"url":"https://api.github.com/repos/Mrminfive/hexo-theme-skapp/issues/comments/402104311","html_url":"https://github.com/Mrminfive/hexo-theme-skapp/issues/68#issuecomment-402104311","issue_url":"https://api.github.com/repos/Mrminfive/hexo-theme-skapp/issues/68","id":402104311,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjEwNDMxMQ==","user":{"login":"BruceYuj","id":19621739,"node_id":"MDQ6VXNlcjE5NjIxNzM5","avatar_url":"https://avatars0.githubusercontent.com/u/19621739?v=4","gravatar_id":"","url":"https://api.github.com/users/BruceYuj","html_url":"https://github.com/BruceYuj","followers_url":"https://api.github.com/users/BruceYuj/followers","following_url":"https://api.github.com/users/BruceYuj/following{/other_user}","gists_url":"https://api.github.com/users/BruceYuj/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceYuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceYuj/subscriptions","organizations_url":"https://api.github.com/users/BruceYuj/orgs","repos_url":"https://api.github.com/users/BruceYuj/repos","events_url":"https://api.github.com/users/BruceYuj/events{/privacy}","received_events_url":"https://api.github.com/users/BruceYuj/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T10:45:06Z","updated_at":"2018-07-03T10:45:06Z","author_association":"COLLABORATOR","body":"yes, linux or macos is better"}}
{"actor":{"display_login":"BruceYuj"}}