Nuxt.js project 个人网站 nuxt 服务器渲染版本
# install dependencies
$ npm install # Or yarn install*[see note below]
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm start
# generate static project
$ npm run generate
*Note: Due to a bug in yarn's engine version detection code if you are using a prerelease version of Node (i.e. v7.6.0-rc.1) you will need to either:
- Use
npm install
- Run
yarn
with a standard release of Node and then switch back
For detailed explanation on how things work, checkout the Nuxt.js docs.