首页 > 技术文章 > 使用nuxt.js+koa2创建项目-继续爬坑

a-way-blog 2019-11-29 15:50 原文

$ vue init nuxt-community/koa-template <project-name>

$ cd <project-name> $ npm run dev

<!-- 1. 如果有报错: Plugin/Preset files are not allowed to export objects, only functions

需要降低nuxt版本至1.4.2: npm uninstall nuxt npm install nuxt@1.4.2

2. 升级eslint-plugin-html $ npm i eslint-plugin-html@^3

-->

 

不用再迷信的安装什么backpack-core这些了。。。。。

降低版本最实在

 

nuxt.js实在坑太多,

推荐阅读