/*Making http request to the api (Git hub) create request parse responce wrap in a function */ var https = require(\"https\"); var username = \'lynndor\'; //CREATIN
Your "path" variable contains space
path: ' /users/'+ username +'/repos',
Instead it should be
path: '/users/'+ username +'/repos',