@serefei are you running npm install inside a VM or on your local filesystem?
if its docker, then you should try restarting
sudo service docker restart
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to implement Laravel mix on my current project. However, upon running npm install it gives me this error
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/@babel/parser/-/parser-7.11.5.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
I tried to check ping most of the daily sites I used and all returned good aside from registry.npmjs.org
Tried to access https://registry.npmjs.org/ on browser and gives me this
This site can’t be reached
registry.npmjs.org’s server IP address could not be found.
I would like to ask if this is happening on your side as well. Please let me know your advice.
Thanks in advance!
@serefei sometimes ISP's dns servers can loose a site and then they often take ages to refresh.
I've switched DNS on my network to use googles DNS servers rather than virgin media
Please or to participate in this conversation.