升级到最新版本1.2.1后启动meteor时出错

时间:2015-10-27 20:20:56

标签: node.js mongodb meteor

我已将meteor升级到最新版本,但有些东西被破坏了。

启动meteor时出现此错误:

W20151027-19:59:16.814(0)? (STDERR) 
W20151027-19:59:16.814(0)? (STDERR) /Users/dev/.meteor/packages/meteor-tool/.1.1.10.1xbrzvw++os.osx.x86_64+web.browser+web.cordova/mt- os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20151027-19:59:16.815(0)? (STDERR)                         throw(ex);
W20151027-19:59:16.815(0)? (STDERR)                               ^
W20151027-19:59:16.942(0)? (STDERR) Error: deny: Value for `update` must be a function
W20151027-19:59:16.942(0)? (STDERR)     at packages/mongo/collection.js:755:1
W20151027-19:59:16.942(0)? (STDERR)     at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1)
W20151027-19:59:16.942(0)? (STDERR)     at Function._.each._.forEach (packages/underscore/underscore.js:105:1)
W20151027-19:59:16.942(0)? (STDERR)     at [object Object].addValidator (packages/mongo/collection.js:752:1)
W20151027-19:59:16.943(0)? (STDERR)     at [object Object].Mongo.Collection.deny (packages/mongo/collection.js:804:1)
W20151027-19:59:16.943(0)? (STDERR)     at Posts.getNotificationProperties.properties.postAuthorName (lib/herald.js:7:21)
W20151027-19:59:16.943(0)? (STDERR)     at /Users/dev/Desktop/akhbar/danzo/.meteor/local/build/programs/server/boot.js:249:5
=> Exited with code: 8

谢谢,

1 个答案:

答案 0 :(得分:4)

检查release notes

  

Collection#allow / deny现在在传递falsy值时抛出错误。 #5442