zoukankan      html  css  js  c++  java
  • vue-cli-serve启动报错

    报错信息:

    > vue-cli-service serve
    
     INFO  Starting development server...
    10% building 2/2 modules 0 active ERROR  TypeError: Cannot read property 'upgrade' of undefined
    TypeError: Cannot read property 'upgrade' of undefined
        at Server.<anonymous> (D:companyunifound
    ewgitvue-admin-template
    ode_modules\_webpack-dev-server@3.11.2@webpack-dev-serverlibServer.js:135:47)
        at Array.forEach (<anonymous>)
        at new Server (D:companyunifound
    ewgitvue-admin-template
    ode_modules\_webpack-dev-server@3.11.2@webpack-dev-serverlibServer.js:134:27)
        at serve (D:companyunifound
    ewgitvue-admin-template
    ode_modules\_@vue_cli-service@4.4.4@@vuecli-servicelibcommandsserve.js:172:20)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! vue-admin-template@4.4.0 dev: `vue-cli-service serve`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the vue-admin-template@4.4.0 dev script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     D:Program Files
    ode-v12.18.3-win-x64
    ode_cache\_logs2021-01-27T03_17_30_205Z-debug.log
    

    原因是vue的配置文件vue.config.js中devServer.proxy地址没写

  • 相关阅读:
    RESTful API 设计指南
    浅析JS中的模块规范(CommonJS,AMD,CMD)
    Gitbucket—快速建立自己的Github
    单点登录详解
    Java常用类--处理日期
    Java常用类--数字常用类
    java常用类--字符串
    java常用类--系统相关
    java常用类--与用户互动
    设置PATH和CLASSPATH
  • 原文地址:https://www.cnblogs.com/li320212035/p/14334023.html
Copyright © 2011-2022 走看看