Every time I try to create a new app using
npx create-next-app@latest --typescript
, it keeps giving me this error message:
npm ERR! code ENETUNREACH
npm ERR! syscall connect
npm ERR! errno ENETUNREACH
npm ERR! request to https://registry.npmjs.org/create-next-app failed, reason: connect ENETUNREACH 2606:4700::6810:1a23:443
npm ERR! A complete log of this run can be found in:
npm ERR! /home/krishna/.npm/_logs/2022-12-09T07_50_50_119Z-debug-0.log
Can someone please provide guidance on how to resolve this issue?
I've tried multiple solutions found online without success.