我遵循了教程安装框架nuxt.js,但是在安装并运行npm running dev
之后,出现如下错误。
c:\xampp\htdocs\rumaholi-nuxtjs>npm run dev
> rumaholi-nuxtjs@1.0.0 dev c:\xampp\htdocs\rumaholi-nuxtjs
> nuxt
c:\xampp\htdocs\rumaholi-nuxtjs\node_modules\@nuxt\utils\dist\utils.js:1752
const match = asString.match(/^([^{(]+)=>\s*(.*)/s);
^
SyntaxError: Invalid regular expression flags
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (c:\xampp\htdocs\rumaholi-nuxtjs\node_modules\@nuxt\cli\dist\cli-chunk.js:15:15)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rumaholi-nuxtjs@1.0.0 dev: `nuxt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rumaholi-nuxtjs@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Muhammad Fauzi\AppData\Roaming\npm-cache\_logs\2019-05-08T03_00_39_304Z-debug.log