使用next.js官网命令创建项目时报找不到存储库的错误

1,154 阅读1分钟

报错信息

Could not locate the repository for "github.com/vercel/next…". Please check that the repository exists and try again. 解决方法:
采用以下命令来代替官网创建项目的命令

npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn/tree/master/basics/learn-starter"

建议去看英文文档,中文文档好像没有维护升级