打开Deployd仪表板时遇到问题

时间:2015-07-30 18:09:18

标签: angularjs node.js deployd

我是Deployd的初学者( www.deployd.com )。我正在学习这本书" Pro AngularJS"我在第6章开始时已经按照所有说明操作,以便在浏览器中打开Deployd仪表板,但在命令提示符下出现错误,并且仪表板拒绝在浏览器中打开。

页面一直处于加载状态,直到停止并显示找不到服务器。我也按照Deployd页面上的步骤操作,但仍然会遇到相同的错误。

我在提示时收到的错误是:

 Unhandled rejection TypeError: Cannot read property 'insert' of undefined
    at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:262:8
    at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:155:12
    at tryCatcher (C:\Program Files\Deployd\node_modules\deployd\node_modules\bl
uebird\js\main\util.js:24:31)
    at Promise._settlePromiseFromHandler (C:\Program Files\Deployd\node_modules\
deployd\node_modules\bluebird\js\main\promise.js:454:31)
    at Promise._settlePromiseAt (C:\Program Files\Deployd\node_modules\deployd\n
ode_modules\bluebird\js\main\promise.js:530:18)
    at Promise._settlePromises (C:\Program Files\Deployd\node_modules\deployd\no
de_modules\bluebird\js\main\promise.js:646:14)
    at Async._drainQueue (C:\Program Files\Deployd\node_modules\deployd\node_mod
ules\bluebird\js\main\async.js:79:16)
    at Async._drainQueues (C:\Program Files\Deployd\node_modules\deployd\node_mo
dules\bluebird\js\main\async.js:89:10)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\Deployd\n
ode_modules\deployd\node_modules\bluebird\js\main\async.js:14:14)
    at processImmediate [as _immediateCallback] (timers.js:367:17)
Unhandled rejection TypeError: Cannot read property 'insert' of undefined
    at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:262:8
    at C:\Program Files\Deployd\node_modules\deployd\lib\db.js:155:12
    at tryCatcher (C:\Program Files\Deployd\node_modules\deployd\node_modules\bl
uebird\js\main\util.js:24:31)
    at Promise._settlePromiseFromHandler (C:\Program Files\Deployd\node_modules\
deployd\node_modules\bluebird\js\main\promise.js:454:31)
    at Promise._settlePromiseAt (C:\Program Files\Deployd\node_modules\deployd\n
ode_modules\bluebird\js\main\promise.js:530:18)
    at Promise._settlePromises (C:\Program Files\Deployd\node_modules\deployd\no
de_modules\bluebird\js\main\promise.js:646:14)
    at Async._drainQueue (C:\Program Files\Deployd\node_modules\deployd\node_mod
ules\bluebird\js\main\async.js:79:16)
    at Async._drainQueues (C:\Program Files\Deployd\node_modules\deployd\node_mo
dules\bluebird\js\main\async.js:89:10)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\Deployd\n
ode_modules\deployd\node_modules\bluebird\js\main\async.js:14:14)
    at processImmediate [as _immediateCallback] (timers.js:367:17)

注意:每次在Deployd控制台上输入命令时,我都会在提示符下收到以下消息:

js-bson: Failed to load c++ bson extension, using pure JS version

出现提示结果之前。我不知道它是否也是问题的一部分。这是我第一次尝试使用Deployd,所以我不知道这些错误是什么意思。

1 个答案:

答案 0 :(得分:0)

检查您的bson安装。如果在安装

时没有注意到控制台中红色字母的bson错误
npm install deployd -g

尝试更新,

npm update

要在系统中正确安装bson软件包,需要在系统中的正确路径中使用python和c ++编译器。 以下链接显示了正确安装bson软件包的许多选项。 http://techtothepoint.blogspot.com/2015/03/npm-install-errors-buildreleasebson.html