Messiahhh / wenku8-downloader

轻小说文库的命令行小说下载器
138 stars 12 forks source link

无法运行 #20

Open landall opened 3 months ago

landall commented 3 months ago

file:///C:/Users/CST/AppData/Roaming/npm/node_modules/wenku8/dist/utils/fetch.js:38 import cheerio from 'cheerio'; ^^^^^^^ SyntaxError: The requested module 'cheerio' does not provide an export named 'default' at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21) at async ModuleJob.run (node:internal/modules/esm/module_job:229:5) at async ModuleLoader.import (node:internal/modules/esm/loader:473:24) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.17.0

这个对Node.js的版本有要求么?

Shinoidk5438 commented 2 months ago

\node_modules\wenku8\dist\utils\fetch.js第38行 把import cheerio from 'cheerio'; 改成 import * as cheerio from 'cheerio'; 然后你就可以成功打开了