{// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version":"0.2.0","configurations":[{"name":"Listen for Xdebug","type":"php","request":"launch","port":9003},{"name":"Launch currently open script","type":"php","request":"launch","program":"${file}","cwd":"${fileDirname}","port":0,"runtimeArgs":["-dxdebug.start_with_request=yes"],"env":{"XDEBUG_MODE":"debug,develop","XDEBUG_CONFIG":"client_port=${port}"}},{"name":"Launch Built-in web server","type":"php","request":"launch","runtimeArgs":["-dxdebug.mode=debug","-dxdebug.start_with_request=yes","-S","localhost:0"],"program":"","cwd":"${workspaceRoot}","port":9003,"serverReadyAction":{"pattern":"Development Server \\(http://localhost:([0-9]+)\\) started","uriFormat":"http://localhost:%s","action":"openExternally"}}]}
npm install -g @vue/cli
# ORyarn global add @vue/cli
Usage: vue <command> [options]Options:
-V, --version output the version number
-h, --help output usage information
Commands:
create [options] <app-name> create a new project powered by vue-cli-service
add [options] <plugin> [pluginOptions] install a plugin and invoke its generator in an already created project
invoke [options] <plugin> [pluginOptions] invoke the generator of a plugin in an already created project
inspect [options][paths...] inspect the webpack config in a project with vue-cli-service
serve [options][entry] serve a .js or .vue file in development mode with zero config
build [options][entry] build a .js or .vue file in production mode with zero config
ui [options] start and open the vue-cli ui
init [options] <template> <app-name> generate a project from a remote template (legacy API, requires @vue/cli-init) config [options][value] inspect and modify the config
outdated [options](experimental) check for outdated vue cli service / plugins
upgrade [options][plugin-name](experimental) upgrade vue cli service / plugins
migrate [options][plugin-name](experimental) run migrator for an already-installed cli plugin
info print debugging information about your environment
Run vue <command> --help for detailed usage of given command.
vue create is a Vue CLI 3 only command and you are using Vue CLI 2.9.6.
You may want to run the following to upgrade to Vue CLI 3:
npm uninstall -g vue-cli
npm install -g @vue/cli
Vue CLI 2
vue init
λ vue init -h
Usage: vue-init <template-name> [project-name]Options:
-c, --clone use git clone
--offline use cached template
-h, --help output usage information
Examples:
# create a new project with an official template $ vue init webpack my-project
# create a new project straight from a github template $ vue init username/repo my-project
vue init webpack [project-name]
项目结构如下
运行
npm run dev
Vue CLI 3
vue create
λ vue create -h
Usage: create [options] <app-name>
create a new project powered by vue-cli-service
Options:
-p, --preset <presetName> Skip prompts and use saved or remote preset
-d, --default Skip prompts and use default preset
-i, --inlinePreset <json> Skip prompts and use inline JSON string as preset
-m, --packageManager <command> Use specified npm client when installing dependencies
-r, --registry <url> Use specified npm registry when installing dependencies (only for npm) -g, --git [message] Force git initialization with initial commit message
-n, --no-git Skip git initialization
-f, --force Overwrite target directory if it exists
--merge Merge target directory if it exists
-c, --clone Use git clone when fetching remote preset
-x, --proxy Use specified proxy when creating project
-b, --bare Scaffold project without beginner instructions
--skipGetStarted Skip displaying "Get started" instructions
-h, --help output usage information
Exceptioninthread"main"com.alibaba.dubbo.rpc.RpcException:FailedtoinvokethemethodsayHellointheservicetop.guoj.api.HelloService.Tried3timesoftheproviders[192.168.100.61:20880](1/1)fromtheregistry224.5.6.7:1234ontheconsumer192.168.100.61usingthedubboversion2.6.2.Lasterroris:Failedtoinvokeremotemethod:sayHello,provider:dubbo://192.168.100.61:20880/top.guoj.api.HelloService?anyhost=true&application=dubbo-consumer&check=false&dubbo=2.6.2&generic=false&interface=top.guoj.api.HelloService&methods=sayHello&pid=9072®ister.ip=192.168.100.61&remote.timestamp=1533266073861&side=consumer×tamp=1533266624708, cause: com.alibaba.dubbo.remoting.RemotingException: Not found exported service: top.guoj.api.HelloService:20880 in [top.guoj.api.HelloService:1.0.0:20880], may be version or group mismatch , channel: consumer: /192.168.100.61:53628 --> provider: /192.168.100.61:20880, message:RpcInvocation [methodName=sayHello, parameterTypes=[class java.lang.String], arguments=[world], attachments={dubbo=2.6.2, input=171, path=top.guoj.api.HelloService, interface=top.guoj.api.HelloService, version=0.0.0}]com.alibaba.dubbo.remoting.RemotingException:Notfoundexportedservice:top.guoj.api.HelloService:20880in[top.guoj.api.HelloService:1.0.0:20880],maybeversionorgroupmismatch,channel:consumer:/192.168.100.61:53628-->provider:/192.168.100.61:20880,message:RpcInvocation[methodName=sayHello,parameterTypes=[classjava.lang.String],arguments=[world],attachments={dubbo=2.6.2,input=171,path=top.guoj.api.HelloService,interface=top.guoj.api.HelloService,version=0.0.0}]atcom.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:212)atcom.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:78)atcom.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96)atcom.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:172)atcom.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)atcom.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:80)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)atjava.lang.Thread.run(Thread.java:745)atcom.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:102)atcom.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238)atcom.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)atcom.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)atcom.alibaba.dubbo.common.bytecode.proxy0.sayHello(proxy0.java)attop.guoj.consumer.Consumer.main(Consumer.java:37)Causedby:com.alibaba.dubbo.remoting.RemotingException:com.alibaba.dubbo.remoting.RemotingException:Notfoundexportedservice:top.guoj.api.HelloService:20880in[top.guoj.api.HelloService:1.0.0:20880],maybeversionorgroupmismatch,channel:consumer:/192.168.100.61:53628-->provider:/192.168.100.61:20880,message:RpcInvocation[methodName=sayHello,parameterTypes=[classjava.lang.String],arguments=[world],attachments={dubbo=2.6.2,input=171,path=top.guoj.api.HelloService,interface=top.guoj.api.HelloService,version=0.0.0}]com.alibaba.dubbo.remoting.RemotingException:Notfoundexportedservice:top.guoj.api.HelloService:20880in[top.guoj.api.HelloService:1.0.0:20880],maybeversionorgroupmismatch,channel:consumer:/192.168.100.61:53628-->provider:/192.168.100.61:20880,message:RpcInvocation[methodName=sayHello,parameterTypes=[classjava.lang.String],arguments=[world],attachments={dubbo=2.6.2,input=171,path=top.guoj.api.HelloService,interface=top.guoj.api.HelloService,version=0.0.0}]atcom.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:212)atcom.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:78)atcom.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96)atcom.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:172)atcom.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)atcom.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:80)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)atjava.lang.Thread.run(Thread.java:745)atcom.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:222)atcom.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:139)atcom.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:112)atcom.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:95)atcom.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:148)atcom.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77)atcom.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54)atcom.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)atcom.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)atcom.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)atcom.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48)atcom.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)atcom.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)atcom.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78)...5more