Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行 pnpm run dev 后报错,请问是什么原因 #1

Open
re2x opened this issue Mar 28, 2023 · 1 comment
Open

执行 pnpm run dev 后报错,请问是什么原因 #1

re2x opened this issue Mar 28, 2023 · 1 comment

Comments

@re2x
Copy link

re2x commented Mar 28, 2023

main分支,commit f21b57e
先执行 pnpm install
再执行 pnpm run dev 后报错,请问是什么原因

> @ dev TCM-Body-Constitution-Test
> nuxt dev                                                          13:38:16
Nuxi 3.3.2                                                            13:38:16
Nuxt 3.3.2 with Nitro 2.3.2                                           13:38:16

 ERROR  (0 , _nuxt.defineNuxtConfig) is not a function                13:38:17
  at nuxt.config.ts:19:43
  at Object.jiti (node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:1:245784)
  at resolveConfig (node_modules/.pnpm/[email protected]/node_modules/c12/dist/index.mjs:271:24)
  at loadConfig (node_modules/.pnpm/[email protected]/node_modules/c12/dist/index.mjs:113:40)
  at async loadNuxtConfig (node_modules/.pnpm/registry.npmmirror.com+@[email protected]/node_modules/@nuxt/kit/dist/index.mjs:486:18)
  at async Object.invoke (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/dev.mjs:6765:20)
  at async _main (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/cli.mjs:49:20)

 ELIFECYCLE  Command failed with exit code 1.
@oliver3109
Copy link
Owner

你好,我运行不报错,你可以清理node_modules重新再试
我的系统是mac,node版本是v16.14.2,pnpm版本是6.28.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants