NuxtN
Nuxt11mo ago
8 replies
svecs132

Nuxt prepare error

In the last few days I can't create a nuxt app (using nuxi init) without getting this error during nuxt prepare after installing the dependencies (or subsequently after every npm i):
> nuxt prepare


 ERROR  loadNuxt2 is not a function

    at loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:2680:22)
    at async Object.run (node_modules/@nuxt/cli/dist/chunks/prepare.mjs:31:18)
    at async runCommand (node_modules/citty/dist/index.mjs:316:16)
    at async runCommand (node_modules/citty/dist/index.mjs:307:11)
    at async runMain (node_modules/citty/dist/index.mjs:445:7) 



 ERROR  loadNuxt2 is not a function

Does anyone know how I could fix that? (I mean I can remove the postinstall script that runs nuxt prepare but any other solutions?)
Was this page helpful?