New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx create-next-app@latest
not working
#35623
Comments
I am experiencing the same issue, I have never installed yarn yet it still is trying to install next template project via yarn instead of npm. |
Looks like this will be fixed in #35608. It hasn’t been made part of an official release yet, only merged into TIL: Next.js now uses Yarn by default: #34947 (comment) |
I am experiencing the same issue, NEXTJS npx create-next-app@latest --ts fronten Using yarn. <------------------------------------------------------------------------------------ Installing dependencies:
|
Looks like this was introduced in the latest patch version release: this will succeed: npx create-next-app@12.1.0 this will fail: npx create-next-app@12.1.1 |
I tried installing the previous version, as marko-knoebl suggested, but still got the issue. I solved it by previously installing yarn: npm install --global yarn Afterwards, you should be able to install version 12.1.1 with all the files needed. |
@yeskunall why are they doing that? If we use |
use npx create-next-app nextapp --use-npm |
thank you for this @khudaverdiev11 . worked like a charm. also works with the --typescript flag |
#35623 (comment) is correct, indeed #35608 fixes this. You can try it out on |
Hi, this has been fixed in the latest version of Next.js |
It works! Thank you so much for your hard work! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
I did not check next@canary because I don't think believe that create-next-app would carry over
Because I'm not even able to make a project with create-next-app, here's what's happening:
When I run the
npx create-next-app@latest
command in the terminal, I get this error:What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
create-next-app is not working. The command only produces a directory and a package.json file. That's it.
Expected Behavior
I want create-next-app to build me a next.js project
To Reproduce
run
create-next-app@latest
in your terminalThe text was updated successfully, but these errors were encountered: