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地址没写

  • 相关阅读:
    airprobe 安装 part2
    USRP Daugherboard: DBSRX
    电赛又见电赛!2011电赛之我见
    USRP Experiment 1: Data transmission
    How to Switch Between GDM and KDM on Ubuntu
    USRP Daugherboard: BasicRX
    Oracle Analyze 命令 详解
    Oracle SQL优化 总结
    Oracle SQL优化 总结
    Oracle 用拼接字符串更新表 测试
  • 原文地址:https://www.cnblogs.com/li320212035/p/14334023.html
Copyright © 2011-2022 走看看