我有一個名爲packagetester
的應用程序,它包含/ packages目錄以及名爲lauffenp:notifications
的本地包,位於/ packages目錄中。流星應用程序未在第二個終端中看到本地包
以下是來自packagetester
的軟件包文件。
meteor-base # Packages every Meteor app needs to have
mobile-experience # Packages for a great mobile UX
mongo # The database Meteor supports right now
blaze-html-templates # Compile .html files into Meteor Blaze views
session # Client-side reactive dictionary for your app
jquery # Helpful client-side library
tracker # Meteor's client-side reactive programming library
standard-minifiers # JS/CSS minifiers run for production mode
es5-shim # ECMAScript 5 compatibility for older browsers.
ecmascript # Enable ECMAScript2015+ syntax in app code
autopublish # Publish all data to the clients (for prototyping)
insecure # Allow all DB writes from clients (for prototyping)
lauffenp:notifications
現在,如果我在使用meteor
單一終端運行它,它工作得很好,它找到的包像它應該和執行它。
不過,如果我打開第二個終端,並嘗試做同樣的事情,它無法找到該軟件包:
=> Started MongoDB.
=> Errors prevented startup:
While selecting package versions:
error: unknown package in top-level dependencies: lauffenp:notifications
這裏是左終端上運行和失敗的應用程序的屏幕截圖在右側終端上。 screen capture of app running/not running in two terminal instances
如果我退出左側終端,它不會運行,並給我同樣的錯誤。我必須meteor remove
和meteor add
以某種方式'重置'包,然後我可以在一個終端上運行它。
我怎樣才能讓流星'堅持'本地包?
你需要添加/刪除 – pahan
不......不運行應用程序添加的所有包包之前,停止你的應用程序的運行上。問題是唯一能找到包的明確的終端實例就是我明確添加的包。 – phillercode