简体   繁体   中英

After I upgraded to macOS Ventura (13.0) nextjs and any npx command stuck

After I upgraded to macOS 13. I found a problem with command in nextjs first. I tried to run my project with: npm run dev

This is result:

> dev
> next dev

It stucked on this log very very long time.

and I tried to create another project using:

npx create-next-app@latest

Result same to nextjs

About my computer:

  • Macbook pro 2018 13-inch 4 ports
  • I used Oh My Zsh on terminal
  • my node.js version is 16.18.0 (16.9.1 on this question created)

UPDATED 27/10/22

After I asked in this community. I tried many way to solve this issues. This is way I tried:

  • Reinstall macOS Ventura and not working
  • Change node.js version to 16.18.0 => 19.0.0 and downgraded to 16.18.0 and not working

And now this problem is still. I still can't resolve this problem:(

I also had the same problem when I tried to run the nestjs application. Also failed to install packages, I got this error every time在此处输入图像描述 It turned out that this could be a problem related to the IPv6 configuration. I disabled this setting and everything started working fine在此处输入图像描述

Maybe it will also help you.

UPDATES You can find this settings在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

Updated 28/10/2022 This problem I can resolved!!!!!

Today, I tried to clean install macOS Ventura (by backup internal storage => erase internal storage => install macOS Ventura by bootable drive and recovery data from backup hard disk)

All commands worked normally!

If you found a problem like this, you can resolve by clean install macOS!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM