Mrminfive / hexo-theme-skapp

The hexo flat design theme(扁平化简约主题)
MIT License
479 stars 117 forks source link

卡在jieba那里了,windows环境下如何解决这个jieba2.2.6的版本问题? #91

Open zhengycsh opened 6 years ago

zhengycsh commented 6 years ago

如题 [@mamboer/lunr.js] install from git github:mamboer/lunr.js, may be very slow, please keep patience / [9/10] Installing nan@~2.10.0 C:\WINDOWS\system32\node_modules_nodejieba@2.2.6@nodejieba>node "C:\Users\a9518\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" rebuild \ [9/10] Installing nan@~2.10.0gyp: binding.gyp not found (cwd: C:\WINDOWS\system32\node_modules_nodejieba@2.2.6@nodejieba) while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Users\a9518\AppData\Roaming\npm\node_modules\cnpm\node_modules\node-gyp\lib\configure.js:345:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\a9518\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\WINDOWS\system32\node_modules_nodejieba@2.2.6@nodejieba gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok × Install fail! Error: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1 Error: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1 at ChildProcess.proc.on.code (C:\Users\a9518\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:74:21) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:915:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

aoaoms commented 5 years ago

npm install nodejieba@latest 安装到2.3.0版本就好了