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

安装失败../lib/nodejieba.h:8:37: error: expected template-name before ‘<’ token #183

Open
xiaoyuit opened this issue Dec 10, 2020 · 3 comments

Comments

@xiaoyuit
Copy link

xiaoyuit commented Dec 10, 2020

安装时出现如下错误,请问这个可能是哪里出问题了?

错误图片地址
https://s3.ax1x.com/2020/12/10/riPfUK.jpg

@janckerchen
Copy link

janckerchen commented Dec 24, 2020

npm run rebuild 遇到同样问题
macOS Catalina 10.15.7

2020-12-24_10-46-53 (24)

@4haohansen2033
Copy link

这个问题有人解决了吗?

@tsvico
Copy link

tsvico commented Dec 2, 2022

node版本太低
我用js_native_api.h.patch 解决了此问题

21c21
< #define NAPI_VERSION 6
---
> #define NAPI_VERSION 5
481c481
< // #ifdef NAPI_EXPERIMENTAL
---
> #ifdef NAPI_EXPERIMENTAL
525c525
< // #endif  // NAPI_EXPERIMENTAL
---
> #endif  // NAPI_EXPERIMENTAL

执行 patch -R ~/.electron-gyp/10.1.0/include/node/js_native_api.h js_native_api.h.patch

仅供参考

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

4 participants