我正在尝试启动并运行一个基本的vue.js工作区。但似乎我尝试过的任何事情都行不通。自己动手或使用git不会有任何效果。
有可能成功吗?
复制步骤:
cd vueapp01 && echo -e "\nWill start at ${server.3000}\n\nInstalling packeges..." && npm install && PORT=3000 npm run start
具有输出的:
cd vueapp01 && echo -e "\nWill start at
http://node21.codenvy.io:34463/\n\nInstalling packeges..." && npm install &&
PORT=3000 npm run starthttp://node21.codenvy.io:34463/
Will start at http://node21.codenvy.io:34463/
Installing packeges...
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is
installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4
(node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current:
{"os":"linux","arch":"x64"})
up to date in 6.051s
> vueapp01@1.0.0 start /projects/vueapp01
> npm run dev
> vueapp01@1.0.0 dev /projects/vueapp01
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
DONE Compiled successfully in 2712ms12:26:25
I Your application is running here: http://localhost:3000但是浏览器总是显示: Das系统反问题:(111)连接被拒绝
我还试着从吉特进口回购品.我试过4或5 ..。什么都没起作用
代码版本:
5.22.1
发布于 2018-11-21 13:55:09
关于知识转让:
利用尤里给我的暗示。
"config/index.conf“将host:"localhost"更改为host:"0.0.0.0"
在康登威主义者看来:
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one
will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-
watchoptions- https://stackoverflow.com/questions/53393985
复制相似问题