How do you set boolean values with "yarn config"?

18.6k views Asked by At

The following should illustrate the problem: using yarn config set strict-ssl false will not have the desired result. Does anybody know how to set this to boolean false instead of string 'false'?

enter image description here

2

There are 2 answers

0
Taseen On

For Yarn 2 or later, add this to yarnrc.yml file

enableStrictSsl: false
2
Kasiriveni On
$ 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".