vercel / next.js

The React Framework
https://nextjs.org
MIT License
121.28k stars 25.95k forks source link

Next.js can't currently be installed #65254

Closed crawlchange closed 2 weeks ago

crawlchange commented 2 weeks ago

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/jovial-dream-go8s7s

To Reproduce

run npx create-react-app@latest

Current vs. Expected behavior

Current behavior is:

"npx: installed 1 in 2.39s Cannot find module 'stream/promises'"

Instead of next.js being installed.

Provide environment information

not found: next

Which area(s) are affected? (Select all that apply)

create-next-app

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)

Additional context

I'm running on Ubuntu 20.04.5 LTS.

I decided to give next.js a try. According to the documentation, the first step for installing next.js is running npx create-next-app@latest.

This command doesn't work.

This is a fresh installation of node (sudo apt install nodejs and sudo apt install npm right before running the command).

github-actions[bot] commented 1 day ago

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.