使用 Vue CLI 创建 Vue 应用程序并提供 npm start 时出现错误

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

我正在尝试使用 **Vue CLI ** 命令创建一个应用程序 -

npm create vue@latest

npm isnstall 之后,我尝试使用 **npm run dev 运行我的应用程序 ** 但出现以下错误。我将不胜感激任何帮助。

See the screenshot

**(node:4344) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??='                                           at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)                                               (Use `node --trace-warnings ...` to show where the warning was created)                                                 (node:4344) UnhandledPromiseRejectionWarning: Unhandled promise rejection....
javascript npm command-line vuejs3 vue-cli
1个回答
0
投票

也许您可以尝试将节点版本更新到16或更高版本。

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