2015-03-02 50 views
1

在我的本地機器上,我正在做一個Meteor項目。我離開終端,當我回家時,我檢查並看到下面的代碼中有什麼(第一行是從昨天開始)。我通過複製粘貼來修復問題,然後做了一些轉換,這樣我就可以添加所有的軟件包了。只需使用'流星添加...'。任何人都有任何線索如何發生?試想一下,如果你的生產服務器決定刪除所有流星包;)流星 - 爲什麼我的包被刪除?

=> Client modified -- refreshing (x26) 

Changes to your project's package version selections: 

accounts-base    removed from your project 
accounts-facebook   removed from your project 
accounts-oauth    removed from your project 
accounts-twitter   removed from your project 
accounts-ui-unstyled  removed from your project 
application-configuration removed from your project 
autopublish    removed from your project 
autoupdate     removed from your project 
base64      removed from your project 
binary-heap    removed from your project 
blaze      removed from your project 
blaze-tools    removed from your project 
boilerplate-generator  removed from your project 
callback-hook    removed from your project 
check      removed from your project 
ddp      removed from your project 
deps      removed from your project 
ejson      removed from your project 
facebook     removed from your project 
fastclick     removed from your project 
follower-livedata   removed from your project 
fourseven:scss    removed from your project 
geojson-utils    removed from your project 
html-tools     removed from your project 
htmljs      removed from your project 
http      removed from your project 
id-map      removed from your project 
insecure     removed from your project 
iron:controller   removed from your project 
iron:core     removed from your project 
iron:dynamic-template  removed from your project 
iron:layout    removed from your project 
iron:location    removed from your project 
iron:middleware-stack  removed from your project 
iron:router    removed from your project 
iron:url     removed from your project 
jquery      removed from your project 
json      removed from your project 
launch-screen    removed from your project 
livedata     removed from your project 
localstorage    removed from your project 
logging     removed from your project 
meteor      removed from your project 
meteor-platform   removed from your project 
minifiers     removed from your project 
minimongo     removed from your project 
mobile-status-bar   removed from your project 
mongo      removed from your project 
oauth      removed from your project 
oauth1      removed from your project 
oauth2      removed from your project 
observe-sequence   removed from your project 
ordered-dict    removed from your project 
random      removed from your project 
reactive-dict    removed from your project 
reactive-var    removed from your project 
reload      removed from your project 
retry      removed from your project 
routepolicy    removed from your project 
sacha:spin     removed from your project 
sergeyt:typeahead   removed from your project 
service-configuration  removed from your project 
session     removed from your project 
spacebars     removed from your project 
spacebars-compiler   removed from your project 
templating     removed from your project 
tracker     removed from your project 
twitter     removed from your project 
ui       removed from your project 
underscore     removed from your project 
url      removed from your project 
webapp      removed from your project 
webapp-hashing    removed from your project 

W20150301-17:54:20.272(1)? (STDERR) 
W20150301-17:54:20.273(1)? (STDERR) /Users/flowen/Documents/_htdocs/dateanomad.net/.meteor/local/build/programs/server/boot.js:246 
W20150301-17:54:20.274(1)? (STDERR) }).run(); 
W20150301-17:54:20.274(1)? (STDERR) ^
W20150301-17:54:20.275(1)? (STDERR) ReferenceError: Mongo is not defined 
W20150301-17:54:20.275(1)? (STDERR)  at app/lib/collections.js:1:51 
W20150301-17:54:20.275(1)? (STDERR)  at app/lib/collections.js:4:3 
W20150301-17:54:20.275(1)? (STDERR)  at /Users/flowen/Documents/_htdocs/dateanomad.net/.meteor/local/build/programs/server/boot.js:205:10 
W20150301-17:54:20.276(1)? (STDERR)  at Array.forEach (native) 
W20150301-17:54:20.276(1)? (STDERR)  at Function._.each._.forEach (/Users/flowen/.meteor/packages/meteor-tool/.1.0.41.11tnnrw++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11) 
W20150301-17:54:20.276(1)? (STDERR)  at /Users/flowen/Documents/_htdocs/project/.meteor/local/build/programs/server/boot.js:116:5 
=> Exited with code: 8 

回答

1

如果您的流星應用程序正在運行,則.meteor目錄被刪除或者更具體地說是.meteor/packages文件被刪除時,確切的情況可能發生。

您可以使用meteor create創建一個測試項目,然後通過meteor run運行並刪除.meteor/packages文件來檢查該項目。

雖然我不太確定可能導致文件被刪除的原因。

這在生產模式/流星部署中不會發生,因爲它不會存檔。你的機器上的東西刪除了該文件。

+0

很奇怪它發生了!感謝關於生產模式的解釋! – flowen 2015-03-03 20:35:15