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

Encountering "缺少nodejs环境" Error When Using Source Code #16

Open
dotyfake opened this issue Jan 4, 2024 · 7 comments
Open

Encountering "缺少nodejs环境" Error When Using Source Code #16

dotyfake opened this issue Jan 4, 2024 · 7 comments

Comments

@dotyfake
Copy link

dotyfake commented Jan 4, 2024

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
20240104_175540

@cv-cat
Copy link
Owner

cv-cat commented Jan 6, 2024

不要使用Pypi pip安装了,已不再维护,使用源码即可

@Acmenwangtuo
Copy link

我也遇到相同的问题

@HsLOL
Copy link

HsLOL commented Feb 20, 2024

使用源码依旧存在“缺少nodejs环境”的报错

@cv-cat
Copy link
Owner

cv-cat commented Feb 20, 2024 via email

@HsLOL
Copy link

HsLOL commented Feb 20, 2024

安装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文件,但是有如下的报错:
image

@cv-cat
Copy link
Owner

cv-cat commented Feb 20, 2024 via email

@iiweniiang
Copy link

先执行 npm i jsdom

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

6 participants
@iiweniiang @Acmenwangtuo @HsLOL @dotyfake @cv-cat and others