-
Notifications
You must be signed in to change notification settings - Fork 200
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
Encountering "缺少nodejs环境" Error When Using Source Code #16
Comments
不要使用Pypi pip安装了,已不再维护,使用源码即可 |
我也遇到相同的问题 |
使用源码依旧存在“缺少nodejs环境”的报错 |
安装nodejs了吗
…---原始邮件---
发件人: "Zhonghao ***@***.***>
发送时间: 2024年2月20日(周二) 下午5:59
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [cv-cat/Spider_XHS] Encountering "缺少nodejs环境" Error When Using Source Code (Issue #16)
使用源码依旧存在“缺少nodejs环境”的报错
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
感谢您的回复。我这边已经安装好了nodejs,请问接下来是需要运行相关的js文件嘛(自己是这个方向的小白,还麻烦大佬解惑!) |
不用呀 运行相关的py文件即可,可以加我vx沟通
…---原始邮件---
发件人: "Zhonghao ***@***.***>
发送时间: 2024年2月20日(周二) 晚上9:26
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [cv-cat/Spider_XHS] Encountering "缺少nodejs环境" Error When Using Source Code (Issue #16)
安装nodejs了吗
…
---原始邮件--- 发件人: "Zhonghao @.> 发送时间: 2024年2月20日(周二) 下午5:59 收件人: @.>; 抄送: @.@.>; 主题: Re: [cv-cat/Spider_XHS] Encountering "缺少nodejs环境" Error When Using Source Code (Issue #16) 使用源码依旧存在“缺少nodejs环境”的报错 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
感谢您的回复。我这边已经安装好了nodejs,请问接下来是需要运行相关的js文件嘛(自己是这个方向的小白,还麻烦大佬解惑!)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
先执行 npm i jsdom |
Description: When running *.py files using the source code, I consistently encounter the "缺少nodejs环境" error. I have provided the necessary cookie.txt, and the exe file works fine (though the terminal window keeps appearing continuously).
Packages installed before running:
pip install xhs-spider -i https://pypi.org/simple
npm i jsdom
Current node version: nodejs v18.17
Operating System: Windows 11
The text was updated successfully, but these errors were encountered: