Lovely
Lovely

Reputation: 316

I can't run vue project with Nuxt Fatal Error

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! [email protected] start: `nuxt start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.

Upvotes: 1

Views: 5138

Answers (1)

fevid
fevid

Reputation: 743

try npm run build after that you can use npm start. alternatively, if you are developing and are not in production use npm run dev.

Upvotes: 1

Related Questions