eom*_*off 5 windows mongodb meteor
我试图在Windows上运行流星应用程序.
meteor --settings settings.json --port 3000
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
? meteor --settings settings.json --port 3000
[[[[[ C:\Users\User\code\some_service ]]]]]
=> Started proxy.
=> Exited with code: 8
W20160518-08:35:40.664(2)? (STDERR)
W20160518-08:35:40.665(2)? (STDERR) C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:278
W20160518-08:35:40.665(2)? (STDERR) throw(ex);
W20160518-08:35:40.665(2)? (STDERR) ^
W20160518-08:35:40.665(2)? (STDERR) Error: failed to connect to [localhost:27017]
W20160518-08:35:40.665(2)? (STDERR) at Object.Future.wait (C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:398:15)
W20160518-08:35:40.665(2)? (STDERR) at new MongoConnection (packages/mongo/mongo_driver.js:213:27)
W20160518-08:35:40.666(2)? (STDERR) at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
W20160518-08:35:40.666(2)? (STDERR) at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
W20160518-08:35:40.666(2)? (STDERR) at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
W20160518-08:35:40.666(2)? (STDERR) at new Mongo.Collection (packages/mongo/collection.js:102:40)
W20160518-08:35:40.666(2)? (STDERR) at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
W20160518-08:35:40.666(2)? (STDERR) at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
W20160518-08:35:40.667(2)? (STDERR) at meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12)
W20160518-08:35:40.667(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
W20160518-08:35:40.667(2)? (STDERR) - - - - -
W20160518-08:35:40.667(2)? (STDERR) at [object Object].<anonymous> (C:\Users\User\AppData\Local\.meteor\packages\npm-mongo\1.4.43\npm\node_modules\mongodb\lib\mongodb\connection\server.js:556:74)
W20160518-08:35:40.667(2)? (STDERR) at [object Object].emit (events.js:106:17)
W20160518-08:35:40.667(2)? (STDERR) at [object Object].<anonymous> (C:\Users\User\AppData\Local\.meteor\packages\npm-mongo\1.4.43\npm\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:156:15)
W20160518-08:35:40.667(2)? (STDERR) at [object Object].emit (events.js:98:17)
W20160518-08:35:40.668(2)? (STDERR) at Socket.<anonymous> (C:\Users\User\AppData\Local\.meteor\packages\npm-mongo\1.4.43\npm\node_modules\mongodb\lib\mongodb\connection\connection.js:534:10)
W20160518-08:35:40.668(2)? (STDERR) at Socket.emit (events.js:95:17)
W20160518-08:35:40.668(2)? (STDERR) at net.js:441:14
W20160518-08:35:40.668(2)? (STDERR) at process._tickCallback (node.js:458:13)
Run Code Online (Sandbox Code Playgroud)
从堆栈跟踪我得出结论,它无法与mongo db建立连接.我调查了一下,他们说我应该从mongo 3.2降级到3.0,因为3.2不兼容.
如果这是一个问题.如何在流星中更改mongo版本.
如果问题是别的,请告知.
我使用的是METEOR@1.3.2.4和节点v0.10.43.该应用程序在mac和ubuntu上运行正常.
| 归档时间: |
|
| 查看次数: |
173 次 |
| 最近记录: |