DEP0104:process.env 字符串强制
¥DEP0104: process.env
string coercion
类型:仅文档(支持 --pending-deprecation
)
¥Type: Documentation-only (supports --pending-deprecation
)
将非字符串属性分配给 process.env
时,分配的值将隐式转换为字符串。如果分配的值不是字符串、布尔值或数字,则不推荐使用此行为。将来,这样的分配可能会导致抛出错误。请先将该属性转换为字符串,然后再将其分配给 process.env
。
¥When assigning a non-string property to process.env
, the assigned value is
implicitly converted to a string. This behavior is deprecated if the assigned
value is not a string, boolean, or number. In the future, such assignment might
result in a thrown error. Please convert the property to a string before
assigning it to process.env
.