Vuejs初始化Typeerror

问题描述 投票:0回答:1

我正在尝试创建一个新的 vue 应用程序,但我不断收到此类型错误,我将向您展示我的整个命令行。我所做的就是跑步

npm init vue@latest

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

Vue.js - The Progressive JavaScript Framework

TypeError: (0 , import_node_util.parseArgs) is not a function
    at init (C:\Users\HP\AppData\Local\npm-cache\_npx\2f7e7bff16d1c534\node_modules\create-vue\outfile.cjs:4481:72)
    at Object.<anonymous> (C:\Users\HP\AppData\Local\npm-cache\_npx\2f7e7bff16d1c534\node_modules\create-vue\outfile.cjs:4862:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

我在任何地方都找不到解决方案

我的节点版本是v16.16.0

javascript vue.js
1个回答
0
投票

您的节点版本已过时。 更新到最新版本,就可以解决问题了

© www.soinside.com 2019 - 2024. All rights reserved.