Obtenha antes de 6 meses Data JavaScript Node JS

var oneMonthAgo = new Date(
    new Date().getFullYear(),
    new Date().getMonth() - 1, 
    new Date().getDate()
);
console.log(oneMonthAgo);
//$uj@y
$uj@y