来自项目的README :
Multiple Registries: Install any package from either npm or Bower and keep your package workflow the same.
我假设这意味着我可以使用 Yarn 安装我的 Bower 包(在我的项目的 bower.json
中列出)。如果是这种情况,我将如何去做?
我在 documentation 中没有看到任何提及 Bower 或使用单独注册表的内容。 .但是,我确实看到了 source 中列出的 Bower 注册表。 .
最佳答案
2016 年 11 月 4 日更新:Yarn 决定移除对 Bower 的支持。见 Github pull request和 Bower's blog . =(
原件: Bower 刚刚发布了 blog post关于这个话题。他们似乎对此感到兴奋,但指出目前存在 Unresolved 问题:
Important note: As it stands right now there still seem to be some issues regarding Bower support. We are however confident that with the help of the community, these issues will be solved quickly as Yarn steps towards 1.0 in upcoming months.
他还提到了 pull request用于 bower 补丁。
当我运行 yarn 时,它删除了我的 bower_components
文件夹(这里是 GitHub 票)!不过我真的很喜欢 yarn ,等不及要解决 bower 的问题了。
关于node.js - 如何使用 Yarn 安装 Bower 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40002903/