是否可以在没有mongo包的情况下使用Meteor 1.0.x?同样的问题被问到Meteor without mongo,但解决方案不再适用了。
我发现meteor-platform,application-configuration,autoupdate,routepolicy和webapp包都有mongo依赖。您可以像这样重现这个问题:
meteor create app_without_mongo
cd app_without_mongo
meteor remove autopublish insecure
PACKAGES_TO_ADD=$(meteor remove meteor-platform | grep 'removed from your project' | cut -d' ' -f1 |grep -v mongo |grep -v meteor-platform | grep -v application-configuration | grep -v autoupdate | grep -v routepolicy | grep -v webapp | tr -s '\n' ' ')
meteor add `echo $PACKAGES_TO_ADD`
cat .meteor/versions| grep mongo # it only returns minimongo@1.0.6
meteor
[[[[[ ~/mdsol/repos/meteor_test/app_without_mongo ]]]]]
=> Started proxy.
=> Started MongoDB.
W20150114-18:01:42.960(0)? (STDERR) Program has no main() function.
=> Exited with code: 1
W20150114-18:01:46.211(0)? (STDERR) Program has no main() function.
=> Exited with code: 1
W20150114-18:01:47.442(0)? (STDERR) Program has no main() function.
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.