同一个包的多个安装版本?
Multiple installed versions of the same package?
我刚刚尝试删除一个包:
$ meteor remove raix:push
Changes to your project's package version selections:
raix:eventemitter removed from your project
raix:eventstate removed from your project
raix:push removed from your project
raix:push: removed dependency
$ meteor show raix:push
Package: raix:push@3.0.1
Maintainers: raix
Git: https://github.com/raix/push.git
Exports: Push
[................ snip ....................]
Recent versions:
2.6.10 May 4th, 2015
2.6.11 June 29th, 2015
2.6.12 August 9th, 2015 installed
3.0.0 October 1st, 2015 installed
3.0.1 October 6th, 2015
Older and pre-release versions of raix:push have been hidden. To see all 49 versions, run
'meteor show --show-all raix:push'.
注意双重 installed
(甚至在 meteor remove raix:push
之后)。这是否意味着我在我的应用程序中安装了两个版本的 Push?
当我启动使用该包的应用程序时,它崩溃了(它应该崩溃),原因是:
ReferenceError: Push is not defined
但为什么 meteor show
仍然报告安装了两个版本?
如果你 运行 meteor list
你确实会看到从你的项目中删除的包。
运行 meteor show
允许您查看包的版本,并使用 installed
显示 哪些版本缓存在您的计算机本地。它没有链接到您的项目。
这意味着如果您想 meteor add raix:push@=3.0.0
您将不必下载此版本,这同样适用于 2.6.12
。
请注意,由于 Meteor 的严格 semver 政策,运行ning meteor add raix:push@3.0.0
(删除 =
)将要求最后一个 3.x
版本...这意味着您必须下载 3.0.1
!
我刚刚尝试删除一个包:
$ meteor remove raix:push
Changes to your project's package version selections:
raix:eventemitter removed from your project
raix:eventstate removed from your project
raix:push removed from your project
raix:push: removed dependency
$ meteor show raix:push
Package: raix:push@3.0.1
Maintainers: raix
Git: https://github.com/raix/push.git
Exports: Push
[................ snip ....................]
Recent versions:
2.6.10 May 4th, 2015
2.6.11 June 29th, 2015
2.6.12 August 9th, 2015 installed
3.0.0 October 1st, 2015 installed
3.0.1 October 6th, 2015
Older and pre-release versions of raix:push have been hidden. To see all 49 versions, run
'meteor show --show-all raix:push'.
注意双重 installed
(甚至在 meteor remove raix:push
之后)。这是否意味着我在我的应用程序中安装了两个版本的 Push?
当我启动使用该包的应用程序时,它崩溃了(它应该崩溃),原因是:
ReferenceError: Push is not defined
但为什么 meteor show
仍然报告安装了两个版本?
如果你 运行 meteor list
你确实会看到从你的项目中删除的包。
运行 meteor show
允许您查看包的版本,并使用 installed
显示 哪些版本缓存在您的计算机本地。它没有链接到您的项目。
这意味着如果您想 meteor add raix:push@=3.0.0
您将不必下载此版本,这同样适用于 2.6.12
。
请注意,由于 Meteor 的严格 semver 政策,运行ning meteor add raix:push@3.0.0
(删除 =
)将要求最后一个 3.x
版本...这意味着您必须下载 3.0.1
!