【问题标题】:Why bower-away is moving to bower to Yarn and not NPM为什么凉亭正在转向 Yarn 而不是 NPM
【发布时间】:2018-01-05 11:44:53
【问题描述】:

我遇到了这个不错的模块 bower-away,它可以帮助我们迁移 bower 项目,因为 bower 已被弃用。

但是我不清楚为什么我们要迁移到 Yarn 而不是 NPM。是不是因为 NPM 使用嵌套依赖,Yarn 使用扁平依赖树结构。

https://github.com/sheerun/bower-away

还是有其他原因

【问题讨论】:

    标签: npm frontend nodes bower yarnpkg


    【解决方案1】:

    这是因为只有 Yarn 允许在没有安装 git 存储库的情况下安装 package.json(即凉亭组件)并且能够解析 semver git 标签上的版本。

    【讨论】:

    • 这意味着 Bower 组件是 git 存储库
    • @sheerun 只是为了确保在这里,在离开程序之后我希望能够运行 npm install 例如,我只需要使用纱线吗?
    • 之后需要@Bart yarn
    • 谢谢@sheerun,这是我的怀疑,但如果 npm 仍在处理这个问题,我会很高兴...
    猜你喜欢
    • 1970-01-01
    • 2013-06-15
    • 2017-04-08
    • 1970-01-01
    • 1970-01-01
    • 2015-01-16
    • 2013-02-04
    • 1970-01-01
    • 2014-09-07
    相关资源
    最近更新 更多