2017-06-05 62 views
0

我一直在使用Meteor多年,並在我的Mac上有版本1.1。我創建了一個新目錄,輸入meteor update,並檢查meteor --version是否給出Meteor 1.5。流星教程給'sanitizeForInObject'錯誤

tutorial,我輸入meteor create simple-todoscd進去,輸入meteor

但流星崩潰 - 請參閱下面的錯誤。我怎樣才能讓教程正常運行?我仍然希望能夠運行我的舊Meteor 1.1應用程序。 => Started proxy.
=> Started MongoDB.
W20170605-21:34:04.700(10)? (STDERR) /Users/.../.meteor/packages/meteor-tool/.1.5.0.3kmr7i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280 W20170605-21:34:04.801(10)? (STDERR) throw(ex); W20170605-21:34:04.801(10)? (STDERR) ^ W20170605-21:34:04.803(10)? (STDERR) W20170605-21:34:04.803(10)? (STDERR) TypeError: Cannot read property 'sanitizeForInObject' of undefined W20170605-21:34:04.804(10)? (STDERR) at [object Object].LocalCollection.insert (packages/minimongo/minimongo.js:569:3) W20170605-21:34:04.805(10)? (STDERR) at [object Object].insert (packages/mongo/collection.js:524:37) W20170605-21:34:04.805(10)? (STDERR) at updateVersions (packages/autoupdate.js:133:20) W20170605-21:34:04.806(10)? (STDERR) at packages/autoupdate.js:197:3 W20170605-21:34:04.806(10)? (STDERR) at Function.time (/Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/profile.js:309:28) W20170605-21:34:04.807(10)? (STDERR) at /Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/boot.js:347:13 W20170605-21:34:04.807(10)? (STDERR) at /Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/boot.js:388:5 W20170605-21:34:04.808(10)? (STDERR) at Function.run (/Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/profile.js:510:12) W20170605-21:34:04.809(10)? (STDERR) at /Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/boot.js:386:11 => Exited with code: 1 => Your application is crashing. Waiting for file change.

+0

你可以做一個'''流星重置'''然後再試一次? – blueren

+0

謝謝,但'流星重置'後我仍然收到相同的錯誤信息。 –

回答

0

我不得不重新安裝流星作爲https://www.meteor.com/install描述,然後將它都能正常運作。我甚至可以在一個目錄中運行Meteor 1.1版本,在另一個目錄中運行1.6版本。