第一步:安装vue-cli;

第二步:vue init nuxt-community/starter-template nuxtdemo (nuxtdemo为项目名);

需要进一步输入以下信息

Project name   --输入项目名
Project description   --项目描述,直接回车即可  
Author   --输入作者姓名

第三步:进入到 nuxtdemo 中     cd nuxtdemo

第四步:安装依赖   npm install

第五步:启动项目   npm run dev

访问http://localhost:3000,即可打开项目。

 

重要步骤如下所示:

搭建一个基于nuxt.js的项目

 

 

搭建一个基于nuxt.js的项目

 

或者直接 npx create-nuxt-app <项目名> 即可。

相关文章:

  • 2021-09-13
  • 2021-06-21
  • 2022-12-23
  • 2021-04-18
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
猜你喜欢
  • 2022-02-28
  • 2021-10-10
  • 2021-11-06
  • 2022-02-12
  • 2021-10-08
  • 2022-02-24
相关资源
相似解决方案