1.NUXT环境初始化
下载压缩包:
https://github.com/nuxt-community/starter-template/archive/master.zip
解压后将template目录下的内容复制到创建的项目中,也可以通过命令行
vue init nuxt-community/starter-template + 工程名,创建项目
在package.json中修改name
"name": "test",
"version": "1.0.0",
"description": "test",
"author": "test",
"private": true,
使用 命令npm run dev启动项目,通过http://localhost:3000/访问
2.启动过程中出现的报错
SyntaxError: Invalid or unexpected token
<