I had the same problem while running Ubuntu/WSL in the Hyper terminal when trying to run existing Next JS projects or create new ones. I saw the answer above about it working in PowerShell so I ran Hyper as administrator and the problem went away.