node.js - 如何使用 Yarn 安装 Bower 包?

标签 node.js npm bower yarnpkg

来自项目的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 requestBower'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/

相关文章:

Angular 抛出错误 "Couldn' t 跟随符号链接(symbolic link)”

gruntjs - 配置 grunt bower-install 时遇到问题

javascript - 通过 Nodejs 将原始 HTML 发送到电子邮件 hoganjs 模板,从而在电子邮件客户端上提供原始 HTML 输出

javascript - 当通配符匹配时, Node 快速 GET 路由会失败所有其他请求

Ios-deploy 安装不起作用 - macOS High Sierra (10.13.5)

node.js - 找不到模块 node_modules\@ionic\app-scripts IONIC 3

assets - 在 Laravel 5 中管理 Assets

angularjs - 警告: Cannot read property 'main' of undefined Use

node.js - 使用 Homebrew 安装 Node 版本后如何更改它?

node.js - Mongoose,express-使用对象数组创建模式