Open dotyfake opened 6 months ago
不要使用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了吗 … ---原始邮件--- 发件人: "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文件嘛(自己是这个方向的小白,还麻烦大佬解惑!)
我这边根据安装好的nodejs运行了static文件夹下的info.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