我有一个名为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