参考: https://segmentfault.com/q/1010000005018933 如果报错Cannot assign to read only property 'has' of object '#<Object>'.,说明Object是只读的,添加{}即可,这样原来的Object也不会被改变。 const config = Object.assign({}, cclsConfig, patchbuildConfig); nodejs 将object转换成str打印 https://www.w3cschool.cn/json/n8s61png.html