简体   繁体   English

如何更改MeteorJS中的顶级程序包依赖关系?

[英]How to change top-level package dependencies in MeteorJS?

I'm revisiting "Discover Meteor" and ran into an error when installing the iron-router package. 我正在重新访问“发现流星”并在安装铁路由器包时遇到错误。 Currently running on MeteorJS v1.1.0.2. 当前正在MeteorJS v1.1.0.2上运行。 Here's the command line: 这是命令行:

$mrt add iron-router

This caused all kinds of debugger errors, which I thought could be related to a dependency crash. 这导致了各种调试器错误,我认为这可能与依赖项崩溃有关。 However, 然而,

$mrt remove iron-router

leaves a dependency reference somewhere. 将依赖项引用留在某处。 Hence, the server crashes. 因此,服务器崩溃。

Anybody know where I can find the proper location for editing out the offending dependency? 有人知道我在哪里可以找到适当的位置来编辑有问题的依赖关系吗?

That should be: 应该是:

meteor add iron:router

As for removing old packages, you can edit the .meteor/packages file directly and remove anything you don't want. 至于删除旧软件包,您可以直接编辑.meteor / packages文件并删除不需要的任何内容。 If you want to go back to how the project was at the start (in other words, make it look like it was after you first ran the meteor create command) leave these packages: 如果您想回到项目的开始状态(换句话说,使它看起来像您第一次运行meteor create命令之后的样子),请保留以下软件包:

  • meteor-platform 流星平台
  • autopublish 自动发布
  • insecure 不安全

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM