npm create nuxt xxx
报错 ERROR Error: Failed to download https://codeload.github.com/nuxt/starter/tar.gz/refs/heads/v3: TypeError: fetch failed 的解决方法
事情的起因
今天在构建一个新官网项目,想着用 Nuxt 3 搭个环境,结果一运行:
npm create nuxt@latest nuxtdemo
直接报错:
ERROR Error: Failed to download https://codeload.github.com/nuxt/starter/tar.gz/refs/heads/v3: TypeError: fetch failed
npm notice
npm not