Nextjs Bug after downgrading node and then reinstalling back to the original version of node

130 views Asked by At

I had to remove the current version of the node and downgrade to a later version to finish up with another project. Afterwards I reinstalled back to version 20 of node, but my nextjs project hasn;t been working ever since!!!

PS C:\Github\portfolio.2.0> npm start

> [email protected] start
> next start

   ▲ Next.js 14.0.1
   - Local:        http://localhost:3000

[Error: ENOENT: no such file or directory, open 'C:\Github\portfolio.2.0\.next\BUILD_ID'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Github\\portfolio.2.0\\.next\\BUILD_ID'
}

any one know how to fix this?

I should have been able to run the application. Now its says the buildid file is missing?

1

There are 1 answers

0
dim_dev On BEST ANSWER

Looks like there is no build folder. Run 'npm run build' script to build your project and then run 'npm run start'.