question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not run "npx prisma init" command: binary download error `getaddrinfo ENOTFOUND`

See original GitHub issue

Bug description

I can not run “npx prisma init” under windows system, plea help me. image

How to reproduce

Expected behavior

No response

Prisma information

Environment & setup

  • OS:
  • Database:
  • Node.js version:
  • Prisma version:

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
AGDholocommented, May 19, 2021

@janpio

In China, there are companies that specialize in mirror proxy acceleration services for common package managers, for example (Basically all Chinese developers use this solution, because even if it is not disabled, most foreign server connections are too slow.)

npm mirrors: https://npm.taobao.org/mirrors/ ubuntu mirrors: https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

This is the only solution(except building your own server) in China besides using good quality servers (CN2 lines, not banned etc.), which are used by many institutions or schools.

For the disabled in China issue: If a domain name or server is disabled, then you need to change the domain name and server IP to resolve the issue.

In addition, the general server line is very bad and the download speed is extremely slow, so it is basically the same as being disabled, which is limited by the bandwidth of the Chinese export network.

1reaction
rxdragcommented, May 17, 2021

I think maybe china firewall cause this problem,but I can not solve it with VPN. Is any way to solve this problem? this problem will block many China programers

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot run cli behind proxy · Issue #2181 · prisma ... - GitHub
I managed to workaround the cli downloads by manually downloading the binaries and extracting them to a binaries folder within my project and ......
Read more >
npm ERR! network getaddrinfo ENOTFOUND - Stack Overflow
Instead of setting the proxy using npm config set http_proxy=http://address:8080 go to ~/.npmrc and remove the proxy config. This resolved my issue.
Read more >
Getting ECONNREFUSED error - Questions - Prisma 1 Forum
I can open the Playground at this URL just fine. That seems to have to do with your implementation of the GraphQL Server,...
Read more >
4 packages are looking for funding run `npm fund` for details 2 ...
npm decided to add a new command: npm fund that will provide more visibility to npm users on what dependencies are actively looking...
Read more >
Jspdf autotable draw cell example excel file free - Weebly
It must result in a command name, a script block, or a CommandInfo object. ... react native meter initialize express app npx express-generator...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found