jude
jude
NNuxt
Created by jude on 3/15/2025 in #❓・help
Unable to Fetch Modules from https://api.nuxt.com/modules in China
Hi everyone, I hope you're doing well! I'm facing an issue while trying to create a Nuxt project using the command pnpm create nuxt@latest. When the process tries to fetch modules from https://api.nuxt.com/modules, it fails with the error: [GET] "https://api.nuxt.com/modules": <no response> fetch failed. I am currently located in China, and I suspect the issue may be related to network restrictions. Here’s what I’ve tried so far: 1. VPN Usage: I’ve confirmed that I can access https://api.nuxt.com/modules through a browser and curl requests when connected to a VPN.
2. Proxy Configuration: I’ve set up the following proxy settings in pnpm:
pnpm config set https-proxy http://127.0.0.1:7890
pnpm config set proxy http://127.0.0.1:7890

pnpm config set https-proxy http://127.0.0.1:7890
pnpm config set proxy http://127.0.0.1:7890

After this, I was able to curl the URL successfully, but the issue still persists when using pnpm create nuxt@latest. 3. Cache and Config Clearing: I cleared the cache with pnpm store prune and reset the configuration multiple times, but the issue still persists. Could anyone guide me on how to bypass this issue, or suggest any potential solutions to make the pnpm command work correctly in China? I would really appreciate any help or advice! Thanks in advance!
5 replies