jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
6.6k stars 2.44k forks source link

The provided arguments length (2) does not match the required ones (3). #1284

Open TheDevelolper opened 1 month ago

TheDevelolper commented 1 month ago

Describe the bug Cannot start the application get an assertation error:

quartz on  v4 via node v18.20.2 took 43s
❯ npx quartz create
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_INTERNAL_ASSERTION]: Code: ERR_MODULE_NOT_FOUND; The provided arguments length (2) does not match the required ones (3).
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues

    at new NodeError (node:internal/errors:405:5)
    at assert (node:internal/assert:14:11)
    at getMessage (node:internal/errors:451:5)
    at new NodeError (node:internal/errors:379:21)
    at legacyMainResolve (node:internal/modules/esm/resolve:218:9)
    at packageResolve (node:internal/modules/esm/resolve:903:14)
    at moduleResolve (node:internal/modules/esm/resolve:973:20)
    at defaultResolve (node:internal/modules/esm/resolve:1193:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25) {
  code: 'ERR_INTERNAL_ASSERTION'
}

To Reproduce

Follow steps on site:

git clone https://github.com/jackyzha0/quartz.git
cd quartz
npm i
npx quartz create

Expected behavior Not to error, and hopefully to start

Screenshots and Source If applicable, add screenshots to help explain your problem.

You can help speed up fixing the problem by either

  1. providing a simple reproduction
  2. linking to your Quartz repository where the problem can be observed

Desktop (please complete the following information):

Additional context I just ran the getting started instructions.

aarnphm commented 1 month ago

Seems like to me a node setup problem?

TheDevelolper commented 1 month ago

I don't think so because everything else works and I'm using node on this machine for web development every day.

Perhaps others will encounter this issue and maybe shed some more light on it.

On Thu, 18 Jul 2024 at 08:23, Aaron Pham @.***> wrote:

Seems like to me a node setup problem?

— Reply to this email directly, view it on GitHub https://github.com/jackyzha0/quartz/issues/1284#issuecomment-2235807701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6XBOIOPP2OLTB2RTPSIWDZM5UPXAVCNFSM6AAAAABLCBZHLGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZVHAYDONZQGE . You are receiving this because you authored the thread.Message ID: @.***>