收藏
评论

新手求助一开始就遇到问题了

Unhandled rejection Error: Error: connect ETIMEDOUT

    at DB.raw.then.err (/data/release/weapp/tools/initdb.js:41:11)

    at tryCatcher (/data/release/weapp/node_modules/bluebird/js/release/util.js:16:23)

    at Promise._settlePromiseFromHandler (/data/release/weapp/node_modules/bluebird/js/release/promise.js:512:31)

    at Promise._settlePromise (/data/release/weapp/node_modules/bluebird/js/release/promise.js:569:18)

    at Promise._settlePromise0 (/data/release/weapp/node_modules/bluebird/js/release/promise.js:614:10)

    at Promise._settlePromises (/data/release/weapp/node_modules/bluebird/js/release/promise.js:689:18)

    at Async._drainQueue (/data/release/weapp/node_modules/bluebird/js/release/async.js:133:16)

    at Async._drainQueues (/data/release/weapp/node_modules/bluebird/js/release/async.js:143:10)

    at Immediate.Async.drainQueues (/data/release/weapp/node_modules/bluebird/js/release/async.js:17:14)

    at runCallback (timers.js:810:20)

    at tryOnImmediate (timers.js:768:5)

    at processImmediate [as _immediateCallback] (timers.js:745:5)


最后一次编辑于  2018-08-31
赞 0
收藏

4 个评论

  • Embrace
    Embrace
    2018-08-31

    你用了什么报错?

    2018-08-31
    赞同 2
    回复 1
    • zZZ
      zZZ
      2018-08-31

      node tools/initdb.js

      我按教程走的

      但是不知道自己错哪了


      2018-08-31
      回复
  • 〰Astorm
    〰Astorm
    2018-09-30

    Promise.then方法你是不是只传了一个resolve参数,试试传多一个reject参数

    2018-09-30
    赞同
    回复
  • zZZ
    zZZ
    2018-08-31

    有没有人解答一下


    2018-08-31
    赞同
    回复 1
    • 陈
      2018-08-31

      你到哪一步报这个错了

      2018-08-31
      回复
  • zZZ
    zZZ
    2018-08-31

    要怎么解决?


    2018-08-31
    赞同
    回复