V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kanganxi
V2EX  ›  Vue.js

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

  •  1
     
  •   kanganxi · 2017-09-11 18:00:22 +08:00 · 3505 次点击
    这是一个创建于 2412 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2017-09-11 20:07:23 +08:00
    viko16
        1
    viko16  
       2017-09-11 18:32:48 +08:00   ❤️ 1
    这句话只是告诉你,有个没被处理的 promise rejection 被扔出来了,楼主还是多补点异常日志吧
    chairuosen
        2
    chairuosen  
       2017-09-11 18:34:20 +08:00   ❤️ 1
    node 端的代码有 Promise 的地方都加个.catch 抓异常
    littleylv
        3
    littleylv  
       2017-09-11 18:43:36 +08:00
    遇到问题:
    Google ✖️
    Bing ✖️
    V2 发帖 ✔️
    Lisp
        4
    Lisp  
       2017-09-11 19:24:17 +08:00 via iPhone
    程序员没有见到红色的 error 就大胆往前走
    blackjar
        5
    blackjar  
       2017-09-11 20:07:23 +08:00
    "In the future, xxxxx" future 的事情 future 再说
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1469 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 90ms · UTC 17:15 · PVG 01:15 · LAX 10:15 · JFK 13:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.