即使在CF CLI上将变量FIPS_MODE设置为true,也无法运行在Bluemix环境中创建的node.js应用程序。
答案 0 :(得分:2)
如果使用node.js版本6,我们需要在start命令中明确包含变量-enable-fips
例如:
var data = { "log_names": ["one", "one.one", "one.two", "one.three", "one.three.one", "two", "three", "three.one", "three.one.three.two", "four.one.some.more.stuff"] },
object = {};
data.log_names.forEach(function (a) {
var temp = object;
a.split('.').every(function (b, i, bb) {
if (b in temp) {
temp = temp[b];
return true;
}
temp[bb.slice(i).join('.')] = {};
});
});
console.log(object);