Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhengycsh opened this issue Sep 22, 2018 · 2 comments

Comments

@zhengycsh
Copy link

zhengycsh commented Sep 22, 2018

如题
[@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
Copy link

aoaoms commented Dec 8, 2018

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

@lovepoem
Copy link

lovepoem commented Sep 28, 2024

看起来 mamboer/lunr.js 这个被删除了。 @Mrminfive @mamboer 有没有替换的方案呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants