atian25 / yuque-exporter

export yuque to local markdown
MIT License
321 stars 36 forks source link

导入有错import { parseArgs } from 'util'; #10

Closed dufuhang closed 2 years ago

dufuhang commented 2 years ago
# npx yuque-exporter --token=my_token
file:///usr/local/lib/node_modules/yuque-exporter/dist/bin/cli.js:3
import { parseArgs }  from 'util';
         ^^^^^^^^^
SyntaxError: The requested module 'util' does not provide an export named 'parseArgs'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    at async handleMainPromise (node:internal/modules/run_main:61:12)

请问这个如何解决?

atian25 commented 2 years ago

16.18.1