nuxt.js官网:Nuxt.js
nuxt.js是一个基于 Vue.js 的服务端渲染应用框架
- Node.js/npm/npm 安装确认
$ node -v
$ npm -v
$ npx -v

2.建立nuxt.js的工程
$ npx create-nuxt-app myweb
会提问一些问题:

建好了:

上面是运行、打包等的指令,跟vue项目一样
3.运行看一下
$ npm run dev
运行成功:

打开链接http://localhost:3000/ 可以看到下面的页面:

网友评论