nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.47k stars 428 forks source link

npm run dev error #1039

Open Yangjb18375324102 opened 1 week ago

Yangjb18375324102 commented 1 week ago

yx-ssr@1.0.0 dev nuxt

╭───────────────────────────────────────╮ │ │ │ Nuxt @ v2.18.0 │ │ │ │ ▸ Environment: development │ │ ▸ Rendering: server-side │ │ ▸ Target: server │ │ │ │ Listening: http://localhost:3000/ │ │ │ ╰───────────────────────────────────────╯

ℹ Preparing project for development 下午2:41:32 ℹ Initial build may take a while 下午2:41:32 ℹ Discovered Components: .nuxt/components/readme.md 下午2:41:33 ✔ Builder initialized 下午2:41:33 ✔ Nuxt files generated 下午2:41:33

● Client █████████████████████████ building (63%) 447/451 modules 4 active node_modules/css-loader/dist/runtime/getUrl.js

● Server █████████████████████████ emitting (95%)

/Users/yangjianbang/Documents/person/yx-ssr/node_modules/mkdirp/lib/opts-arg.js:13 throw new TypeError('invalid options argument') ^

TypeError: invalid options argument at optsArg (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/mkdirp/lib/opts-arg.js:13:11) at Function.mkdirp (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/mkdirp/index.js:11:10) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compiler.js:494:26 at eval (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :16:1) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/@nuxt/webpack/dist/webpack.js:1664:7 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :12:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at Compiler.emitAssets (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compiler.js:491:19) at onCompiled (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Watching.js:51:19) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compiler.js:681:15 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compiler.js:678:31 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1423:35 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1414:32 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1409:36 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1405:32 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :9:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at Compilation.seal (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1342:27) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compiler.js:675:18 at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1261:4 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :20:1) at AsyncSeriesHook.lazyCompileHook (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/Hook.js:154:20) at Compilation.finish (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1253:28) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compiler.js:672:17 at eval (eval at create (/Users/yangjianbang/Documents/person/yx-ssr/node_modules/tapable/lib/HookCodeFactory.js:33:10), :11:1) at /Users/yangjianbang/Documents/person/yx-ssr/node_modules/webpack/lib/Compilation.js:1185:12