添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

When I run npm start I am getting an error.

 FATAL  No build files found in ..\client\.nuxt\dist\server. Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
at VueRenderer._ready (node_modules\@nuxt\vue-renderer\dist\vue-renderer.js:758:13)
at async Server.ready (node_modules\@nuxt\server\dist\server.js:637:5)
at async Nuxt._init (node_modules\@nuxt\core\dist\core.js:482:7)
Nuxt Fatal Error
Error: No build files found in ..\client\.nuxt\dist\server.
Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@1.0.0 start: `nuxt start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Vue version is @vue/cli 4.5.13. I am vue.js beginner. What is reason? How can I fix it? Thank you.

Try deleting the ..\client\.nuxt folder and follow @fevid answer If that doesnt work, try updating/upgrading vue/nuxt packages If that doesnt work, try removing packages from your package.json; 1 by 1 until the issue resolves. (Good idea to have backups before you start messing arround) – Jujubes Jun 14, 2021 at 18:05 No build files found in ..\client\.nuxt\dist\server - the error is self explanatory. As a developer try to read error messages. Good luck ! – WebMan Jun 14, 2021 at 22:17

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.