kanganxi
V2EX  ›  Vue.js

Linux 创建完 vue 项目,运行 npm run dev 时报以下错误, node 已正确安装 ,求知道的兄弟姐妹,看看是啥问题,

  •  1
     
  •   kanganxi · Sep 11, 2017 · 4115 views
    This topic created in 3166 days ago, the information mentioned may be changed or developed.

    Listening at http://localhost:8080

    (node:28489) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited with code 3 (node:28489) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

    5 replies    2017-09-11 20:07:23 +08:00
    viko16
        1
    viko16  
       Sep 11, 2017   ❤️ 1
    这句话只是告诉你,有个没被处理的 promise rejection 被扔出来了,楼主还是多补点异常日志吧
    chairuosen
        2
    chairuosen  
       Sep 11, 2017   ❤️ 1
    node 端的代码有 Promise 的地方都加个.catch 抓异常
    U7Q5tLAex2FI0o0g
        3
    U7Q5tLAex2FI0o0g  
       Sep 11, 2017
    遇到问题:
    Google ✖️
    Bing ✖️
    V2 发帖 ✔️
    Lisp
        4
    Lisp  
       Sep 11, 2017 via iPhone
    程序员没有见到红色的 error 就大胆往前走
    blackjar
        5
    blackjar  
       Sep 11, 2017
    "In the future, xxxxx" future 的事情 future 再说
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5780 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 06:30 · PVG 14:30 · LAX 23:30 · JFK 02:30
    ♥ Do have faith in what you're doing.