老师我换新版之后npm start 前端访问超时
来源:10-2 代理环境集成与正式打包测试
qq_万分之一_0
2018-10-15
我新起的项目,运行直接报错,然后我升级了eslint-loader和backpack-core就可以运行了,但是打包后访问完全没反应
{
"name": "nuxtkoa",
"version": "1.1.0",
"description": "Nuxt.js project",
"author": "zhangmin <zhangmin@guahao.com>",
"private": true,
"scripts": {
"dev": "backpack dev",
"build": "nuxt build && backpack build",
"start": "cross-env NODE_ENV=production node build/main.js",
"precommit": "npm run lint",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
},
"dependencies": {
"cross-env": "^5.0.1",
"koa": "^2.4.1",
"nuxt": "latest",
"source-map-support": "^0.4.15"
},
"devDependencies": {
"babel-eslint": "^7.1.1",
"backpack-core": "^0.7.0",
"eslint": "^3.13.1",
"eslint-loader": "2.1.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-html": "^2.0.3",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^3.0.1",
"nodemon": "^1.11.0",
"scmp": "^2.0.0"
}
}
````老师快指点一下
![图片描述](http://img.mukewang.com/szimg/5bc4408400015fab16860728.jpg)
写回答
2回答
-
那应该是服务没开起来,控制台有什么报错信息没?
另外,看下这个版本可以不
"nuxt": "~2.1.0",
"pug": "^2.0.0-rc.2",
"pug-plain-loader": "^1.0.0",
032018-10-17 -
Scott
2018-10-17
可以把代码推倒你的一个仓库里,然后仓库地址贴出来,我看下你整体的代码
00
相似问题