-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
[BUG] npm install nodejieba@2.5.2 安装错误 #355
Comments
尝试使用 |
安装完了吗 |
我macOS装了2.5.2安装试过了,但是部署的时候报错,就换成了2.6.0 |
不行啊,还是同样的问题 |
我之前windows也装不上这玩意儿 |
nodejieba写的很烂 |
对了对了,你运行 |
看起来没啥问题,你去加evan微信问问 |
搜索 |
用微信搜啊 |
o |
网络问题 |
EvanNotFound
added
question
Further information is requested
and removed
bug
Something isn't working
labels
Apr 6, 2024
但是我Windows之前也是同样的报错,换mac之后为啥就可以装 |
This issue is stale because it has been open for 30 days with no activity. |
This was referenced Jun 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
提交 Issue 前检查清单
hexo clean
,问题仍然存在Bug 描述
Node版本 18/20 hexo 7.1.0 主题版本2.6.1
操作系统 Windows11 Git版本2.44.0
npm install nodejieba@2.5.2 时报错如下
$ npm install nodejieba@2.5.2
npm ERR! code 1
npm ERR! path C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute ‘C:\Program Files\nodejs\node.exe C:\Users\ADMIN\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba\build\Release\nodejieba.node --module_name=nodejieba --module_path=C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108’ (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.11
npm ERR! node-pre-gyp info using node@18.19.1 | win32 | x64
npm ERR! node-pre-gyp info check checked for “C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba\build\Release\nodejieba.node” (not found)
npm ERR! node-pre-gyp http GET https://github.com/yanyiwu/nodejieba/releases/download/v2.5.2/nodejieba-v2.5.2-node-v108-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/yanyiwu/nodejieba/releases/download/v2.5.2/nodejieba-v2.5.2-node-v108-win32-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for nodejieba@2.5.2 and node@18.19.1 (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/yanyiwu/nodejieba/releases/download/v2.5.2/nodejieba-v2.5.2-node-v108-win32-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@18.19.1 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@18.19.1 | win32 | x64
npm ERR! gyp info find Python using Python version 3.12.1 found at “C:\Python312\python.exe”
npm ERR! gyp http GET https://nodejs.org/download/release/v18.19.1/node-v18.19.1-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v18.19.1/node-v18.19.1-headers.tar.gz failed, reason: read ECONNRESET
npm ERR! gyp ERR! stack at ClientRequest. (C:\Users\ADMIN\AppData\Roaming\npm\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:517:28)
npm ERR! gyp ERR! stack at _destroy (node:_http_client:882:13)
npm ERR! gyp ERR! stack at onSocketNT (node:_http_client:902:5)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! gyp ERR! System Windows_NT 10.0.22631
npm ERR! gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\ADMIN\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “configure” “–fallback-to-build” “–module=C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba\build\Release\nodejieba.node” “–module_name=nodejieba” “–module_path=C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba\build\Release” “–napi_version=9” “–node_abi_napi=napi” “–napi_build_version=0” “–node_napi_label=node-v108”
npm ERR! gyp ERR! cwd C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba
npm ERR! gyp ERR! node -v v18.19.1
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute ‘C:\Program Files\nodejs\node.exe C:\Users\ADMIN\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba\build\Release\nodejieba.node --module_name=nodejieba --module_path=C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108’ (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (C:\Users\ADMIN\Desktop\redefine\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.22631
npm ERR! node-pre-gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\ADMIN\Desktop\redefine\node_modules@mapbox\node-pre-gyp\bin\node-pre-gyp” “install” “–fallback-to-build”
npm ERR! node-pre-gyp ERR! cwd C:\Users\ADMIN\Desktop\redefine\node_modules\nodejieba
npm ERR! node-pre-gyp ERR! node -v v18.19.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in: C:\Users\ADMIN\AppData\Local\npm-cache_logs\2024-03-22T14_15_43_681Z-debug-0.log
望作者赶快回复/修复
复现方法
No response
预期结果
No response
截图
电脑操作系统
Windows 11
浏览器
Microsoft Edge
版本
122.0.2365.92 X64 位
移动端设备
Android 13
移动端操作系统
MIUI 14
浏览器
Microsoft Edge
版本
122.0.2365.92
其他
No response
The text was updated successfully, but these errors were encountered: