我是 Deployd ( www.deployd.com ) 的初学者。我正在学习“Pro AngularJS”一书,我在第 6 章开头遵循了所有说明,以便在浏览器中打开已部署的仪表板,但在命令提示符下出现错误,并且仪表板拒绝在浏览器中打开。
该页面继续加载,直到它停止并显示未找到服务器。我还按照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,所以我不知道这些错误是什么意思。