Protocol undefined null

In my project I tried to update mongoose.
I directly change my mongoose version in package.json.
And run npm install.
I got the result some package updated and some packages removeed.
Now I tried to run my project.
In my project I’m using npm request to make API calls.
While making a request , it’s show an error
Protocol undefined null.

How to fix this issue.

No useful information. Closing.