[英]I can't run vue project with Nuxt Fatal Error
When I run npm start
I am getting an error.当我运行
npm start
时出现错误。
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
. Vue 版本是
@vue/cli 4.5.13
。 I am vue.js beginner.我是 vue.js 初学者。 What is reason?
什么是理由? How can I fix it?
我该如何解决? Thank you.
谢谢你。
try npm run build
after that you can use npm start
.尝试
npm run build
,然后您可以使用npm start
。 alternatively, if you are developing and are not in production use npm run dev
.或者,如果您正在开发并且未投入生产,请使用
npm run dev
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.