sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo rm /user/bin/node
sudo apt remove nodejs
const url = ' http://...';
http.get(url,(res)=>{
let body = '';
res.on('data',(elem) => body +=elem);
res.on('end',()=> console.log(JSON.parse(body));
});