The console error message:
] D: \ workspace \ vscode \ vue - element - admin> NPM run dev
[email protected] dev D: \ workspace \ vscode \ vue - element - admin
Vue cli - service serve
D: \ workspace \ vscode \ vue - element - admin/node_modules/open/index, js: 29
. The options
^ ^ ^
SyntaxError: Unexpected token...
The at createScript (vm. Js: 74:10)
At the Object. RunInThisContext (vm. Js: 116:10)
At the Module. _compile (Module. Js: 533:28)
at Object.Module._extensions.. Js (module. Js: 580:10)
At the Module. The load (Module. Js: 503:32)
The at tryModuleLoad (module. Js: 466:12)
Ats Function. The Module. _load (Module. Js: 458:3)
At the Module. The require (Module. Js: 513:17)
At the require (internal/module. Js: seeking)
At the Object. & lt; Anonymous> (D: \ workspace \ vscode \ vue - element - admin/node_modules/@ vue \ cli - Shared - utils \ lib \ openBrowser js: 9:14)
And then found the index related to an error. The js, there are the following:
options={
Wait: false,
Background: false,
. The options
};
Put the... Options this writing change, will not make a mistake, this kind of writing and making is consistent, is also a lack of something?
Is 8.2.0 node version on my computer, and then through the NPM install @ vue/cli - g no error message, use the vue - v view also confirmed... The options this position's fault
CodePudding user response:
Should be the Babel plug-in, see Babel. Config. Js