2-sdenv框架的使用
基于github开源的项目: sdenv
github地址:https://github.com/pysunday/sdenv
拉取代码
- git拉取:git clone https://github.com/pysunday/sdenv.git
- 直接前往地址下载:https://github.com/pysunday/sdenv
注:使用前需要根据文章进行环境配置:https://blog.csdn.net/2301_79809548/article/details/137184672
正文
打开项目后通过:npm i 进行依赖的安装
-
找到 example目录,里面有作者提前准备好的demo,
-
找到use-remote文件夹下的index.js 运行,看到报错了
- 关于以下报错已经提iss,
TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type boolean (false) 报错解决
- 前往utils目录找到paths.js将 / 修改为 \\
-
第二次运行
-
**报错 Error: Cannot find module ‘C:\Users\CrawlerUser\Downloads\sdenv-main\sdenv-main\bin\documentAll’ **
解决:需要执行一次编译
编译命令:npm run build:win
编译完成后再次运行,就成功啦
-