Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install ENOTFOUND: artifactory.global.square #471

Open
lee0c opened this issue Aug 17, 2024 · 1 comment
Open

npm install ENOTFOUND: artifactory.global.square #471

lee0c opened this issue Aug 17, 2024 · 1 comment

Comments

@lee0c
Copy link

lee0c commented Aug 17, 2024

Hi. I am trying to run the graphql sample. When I attempt npm install, I get the following:

npm error code ENOTFOUND
npm error syscall getaddrinfo
npm error errno ENOTFOUND
npm error network request to https://artifactory.global.square/artifactory/api/npm/square-npm/word-wrap/-/word-wrap-1.2.5.tgz failed, reason: getaddrinfo ENOTFOUND artifactory.global.square
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly.  See: 'npm help config'

I'm not behind a proxy, just on my home network which as far as I know has extremely boring configuration.

I've tried these commands as well:

python3 -c "import socket; print(socket.getaddrinfo('artifactory.global.square', 443))"
# output
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
ping artifactory.global.square
# output
ping: artifactory.global.square: Name or service not known
curl https://artifactory.global.square/artifactory/api/npm/square-npm/word-wrap/-/word-wrap-1.2.5.tgz
# output
curl: (6) Could not resolve host: artifactory.global.square

Any idea what I am doing wrong?

@bai312
Copy link

bai312 commented Aug 18, 2024

我安装ios-deploy 时也报了这写错误,我也想知道怎么解决这类问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants