vue启动报错:Module build failed: Error: No parser and no file path given, couldn’t infer a parser.


报错信息:
Module build failed: Error: No parser and no file path given, couldn't infer a parser.

解决方案:
npm i prettier@~1.12.0

之后重新运行即可