【问题标题】:How do you set boolean values with "yarn config"?您如何使用“纱线配置”设置布尔值?
【发布时间】:2017-01-03 08:10:55
【问题描述】:

以下应该说明问题: 使用 yarn config set strict-ssl false 不会得到想要的结果。有人知道如何将其设置为布尔值 false 而不是字符串“false”吗?

【问题讨论】:

    标签: yarnpkg


    【解决方案1】:
    $ yarn config set strict-ssl true --global
    success Set "strict-ssl" to true.
    
    $ yarn config set strict-ssl false --global
    success Set "strict-ssl" to "false".
    

    【讨论】:

    • 虽然这段代码 sn-p 可以解决问题,但including an explanation 确实有助于提高帖子的质量。请记住,您是在为将来的读者回答问题,而这些人可能不知道您提出代码建议的原因。
    • 尽管@DimaSan 的意见,这个答案是简单而有用的。谢谢
    猜你喜欢
    • 2012-09-10
    • 1970-01-01
    • 2017-07-14
    • 2020-09-10
    • 2020-10-13
    • 2017-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多