问题描述
我正在尝试在 Nuxt JS 框架中开始一个新项目
npx create-nuxt-app 项目名称
完成安装后,我发现缺少一些目录.缺少的目录是 - 布局、中间件、插件和资产.一开始,我以为我做错了什么,然后我尝试了第二次和第三次,结果是一样的.我搜索了他们的官方文档和 GitHub issue 关于这个问题,但我没有找到任何东西.
- npm:6.14.12"
- 下一页:^2.15.3"
最新版本的 Nuxt 更简单,样板也更少,它遵循更简单的教程设计(可能在路上失去的用户更少).
你仍然可以自己添加这些,它会工作得很好!
这可能是因为 Nuxt3 方法以及以更简约的方式进行教学的意愿.
更多信息在这里:
I'm trying to start a new project in the Nuxt JS framework with
npx create-nuxt-app project-name
After completing the installation I realized some of the directories are missing.Missing directories are - layouts, middleware, plugins, and assets.At first, I thought I did something wrong then I tried second and third times and the result is the same.I searched their official documentation and GitHub issue about this problem but I didn't found anything.
- npm : "6.14.12"
- nuxt: "^2.15.3"
The latest version of Nuxt is more simple and do have less boilerplate, it follows a simpler tutorial design (to probably lose less users on the road).
You can still add those yourself and it'll work perfectly fine!
This is probably because of Nuxt3 approach and the will to make teach things in a more minimalistic way.
More info here: https://github.com/nuxt/create-nuxt-app/releases
An official answer from Atinux can also be found here: https://github.com/nuxt/create-nuxt-app/issues/821#issuecomment-877653294
Also, everything is still explained in the README.md
, with various links to the official documentation.
这篇关于当我尝试创建一个新的 Nuxt js 项目时,某些目录丢失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!