package.json中axios的版本没对应最后改为
"axios": "0.18.0"就好了
{
"name": "name",
"version": "1.0.0",
"description": "description",
"author": "author",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"precommit": "npm run lint"
},
"dependencies": {
"axios": "0.18.0",
"nuxt": "^2.0.0",
"vue-awesome-swiper": "^3.1.3"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^4.19.1",
"eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^2.1.1",
"eslint-plugin-vue": "^4.0.0"
}
}