Solution 1:

This work for me

 "scripts": { 
       "dev": "next -p 8080" 
},

Solution 2:

"scripts": {
    "dev": "next dev -p 8080", // for dev 
    "start": "next start -p 8080" // for prod
},