I am trying to install a package with npm, but I get this kind of error for any npm commands:
npm -h
rcmd: getaddrinfo: nodename nor servname provided, or not known
This happens on a Mac (Ventura 13.1). npm 19.6.1 is installed via homebrew. I guess it is some kind of DNS issue, but I don't know how to get further. I couldn't find this specific error in many searches. Any ideas?