如何安装erxes

时间:2020-06-12 16:22:29

标签: mongodb debian

根据此链接尝试从Erxes.io安装脚本;

https://www.erxes.org/installation/debian10/

按照以下代码获取一些错误,现在我的终端停滞了。

erxes@erxes-main:/root$ 
erxes@erxes-main:/root$ cd ~/erxes-api
erxes@erxes-main:~/erxes-api$ export MONGO_URL=mongodb://localhost/erxes?replicaSet=rs0
erxes@erxes-main:~/erxes-api$ yarn initProject
yarn run v1.22.4
$ ts-node ./src/commands/initProject.ts
(node:20050) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:20050) UnhandledPromiseRejectionWarning: MongoError: there are no users authenticated
    at Connection.<anonymous> (/home/erxes/erxes-api/node_modules/mongodb/lib/core/connection/pool.js:466:61)
    at Connection.emit (events.js:198:13)
    at Connection.EventEmitter.emit (domain.js:448:20)
    at processMessage (/home/erxes/erxes-api/node_modules/mongodb/lib/core/connection/connection.js:364:10)
    at Socket.<anonymous> (/home/erxes/erxes-api/node_modules/mongodb/lib/core/connection/connection.js:533:15)
    at Socket.emit (events.js:198:13)
    at Socket.EventEmitter.emit (domain.js:448:20)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:269:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
(node:20050) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20050) [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.

0 个答案:

没有答案