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.】