我一直在努力让我的应用在升级到0.9.0后工作,我遇到了奇怪的问题。
首先,我将我的存储库克隆到这台计算机上,该计算机位于0.8.3然后当我运行Meteor更新时出现错误:
Can't contact the update server. Are you online?
This project is already at Meteor 0.8.3, the latest release
installed on this computer.
所以我按照这里的说明进行操作:Can't install, update or run Meteor after update
但即使在那之后我也得到了同样的错误。那么我只是将.meteor文件夹中的发布版本号更改为0.9.0并运行meteor update并更新应用程序。
然后我运行了mrt migrate-app,并成功迁移了所有软件包。
现在当我运行'Meteor'时,我收到了这个错误:
Ferozes-iMac:Bookmarks Feroze$ meteor
[[[[[ ~/Desktop/Meteor_Bookmark/Bookmarks ]]]]]
=> Started proxy.
=> Starting MongoDB... |
/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:206
throw(ex);
^
Error: failed to connect to [127.0.0.1:3001]
at Object.Future.wait (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:326:15)
at Object.exports.waitForOne (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:53:25)
at yieldingMethod (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:209:25)
at initiateReplSetAndWaitForReady (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:382:7)
at launchMongo (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:494:9)
at _.extend._startOrRestart (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:581:19)
at _.extend.start (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-mongo.js:547:10)
at _.extend.start (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-all.js:130:24)
at Object.exports.run (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-all.js:275:10)
at main.registerCommand.name [as func] (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands.js:219:17)
at /Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/main.js:1212:23
- - - - -
at null.<anonymous> (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/unipackages/mongo-livedata/npm/node_modules/mongodb/lib/mongodb/connection/server.js:536:74)
at emit (events.js:106:17)
at null.<anonymous> (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/unipackages/mongo-livedata/npm/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
at emit (events.js:98:17)
at Socket.<anonymous> (/Users/Feroze/.meteor/packages/meteor-tool/.1.0.25.1761nat++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/unipackages/mongo-livedata/npm/node_modules/mongodb/lib/mongodb/connection/connection.js:516:10)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
感谢帮助
更新
为了帮助调试,我创建了一个新的用户帐户,安装了meteor,克隆了我的项目。然后运行流星更新。这就是我得到的:
Ferozes-iMac:Bookmarks Nearpoint$ meteor update
Installing Meteor 0.9.0.1:
* 'meteor' build tool (version 8301fde275)
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
Figuring out the best package versions to use. This may take a moment.
This project is at the latest release which is compatible with your
current package constraints.
这不正常,应该让我迁移应用程序吗?
这是我的包文件:
# Meteor packages used by this project, one per line.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
standard-app-packages
npm
iron-router
spin
jade
coffeescript
stylus
bootstrap-3
font-awesome
accounts-password
jquery-ui
select2
jquery-masonry
accounts-ui-bootstrap-3
bootstrap-errors
http
moment
accounts-google
jquery
bootstrap3-datetimepicker
filepicker
meds
kadira
jquery-ui-bootstrap
flash-messages
这是smart.json
{
"packages": {
"iron-router": {
"version": "0.8.2"
},
"spin": {},
"jade": {},
"font-awesome": {},
"jquery-ui": {},
"bootstrap-3": {},
"select2": {},
"jquery-masonry": {},
"accounts-ui-bootstrap-3": {},
"bootstrap-errors": {},
"moment": {},
"bootstrap3-datetimepicker": {},
"filepicker": {},
"meds": {},
"kadira": {},
"jquery-ui-bootstrap": {},
"flash-messages": {}
}
}
答案 0 :(得分:1)
尝试替换
iron-router
与
iron:router@0.9.1
在您的包文件中。