Javascript 正在将Node.js应用程序上载到Bluemix
这是我第一次在bluemix服务器上上传node.js应用程序。然而,在按下它之后,我得到了这个错误Javascript 正在将Node.js应用程序上载到Bluemix,javascript,node.js,ibm-cloud,Javascript,Node.js,Ibm Cloud,这是我第一次在bluemix服务器上上传node.js应用程序。然而,在按下它之后,我得到了这个错误 2017-06-04T17:12:12.63+0300 [APP/0] ERR events.js:160 2017-06-04T17:12:12.63+0300 [APP/0] ERR throw er; // Unhandled 'error' eve nt 2017-06-04T17:12:12.63+0300 [APP/0] ERR ^ 2017-06-04T1
2017-06-04T17:12:12.63+0300 [APP/0] ERR events.js:160
2017-06-04T17:12:12.63+0300 [APP/0] ERR throw er; // Unhandled 'error'
eve
nt
2017-06-04T17:12:12.63+0300 [APP/0] ERR ^
2017-06-04T17:12:12.63+0300 [APP/0] ERR Error: getaddrinfo ENOTFOUND
https://lar
issaappnode-noncharismatic-livingness.mybluemix.net/
2017-06-04T17:12:12.63+0300 [APP/0] ERR at errnoException (dns.js:28:10)
2017-06-04T17:12:12.63+0300 [APP/0] ERR at GetAddrInfoReqWrap.onlookup
[as o
ncomplete] (dns.js:76:26)
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! argv
"/home/vcap/app/vendor/nod
e/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! node v6.10.2
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! npm v3.10.10
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! code ELIFECYCLE
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! get-started-node@0.1.1
start: `
node server.js`
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! Exit status 1
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR!
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! If you do, this is most
likely
a problem with the get-started-node package,
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! Tell the author that this
fails
on your system:
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! node server.js
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! You can get information on
how
to open an issue for this project with:
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! npm bugs get-started-
node
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! Or if that isn't available,
you
can get their info via:
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! npm owner ls get-
started-no
de
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! There is likely additional
logg
ing output above.
2017-06-04T17:12:12.68+0300 [APP/0] ERR npm ERR! /home/vcap/app/npm-
debug.log
js包含一段简单的代码。稍后我将添加mongoDB和相应的路由(get、post等)。但是为了达到这个目的,我首先需要修正这个错误。有什么想法吗
谢谢
西奥。您能在这里添加您的代码吗?您的应用程序似乎正在尝试访问issaappnode-noncharismatic-livingness.mybluemix.net/,但它不存在。所有操作现在完成。它起作用了。我在代码中做了一些更改。