nuxt: Fresh install error "Cannot find any path matching /."

Environment

  • Operating System: Darwin
  • Node Version: v16.17.0
  • Nuxt Version: 3.7.0
  • CLI Version: 3.7.2
  • Nitro Version: 2.6.2
  • Package Manager: npm@9.6.4
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  1. Create new Nuxt3 project by typing npx nuxi@latest init xxxx
  2. Change directory to new project by typing cd xxx
  3. Run development by typing npm run dev

Describe the bug

Browse to localhost:3000 and I see:

statusCode: 404
statusMessage: "Cannot find any path matching /."
stack:  []

Additional context

No response

Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 1
  • Comments: 21 (4 by maintainers)

Most upvoted comments

cleaning npm cache … worked for me

Wow… can’t believe I didn’t try that first. Confirming this solved the issue for me as well. npm cache clean --force

404 [GET] “/_nuxt/builds/meta/test.json”: 404 Cannot find any path matching /_nuxt/builds/meta/test.json. I cant seem to fix this. Only occurs on npm run dev but app works fine on npm run build. I have tried all the above suggestions. Any help will be highly appreciated.

Fixed

Same here MacOS, fresh install

cleaning npm cache … worked for me

I was able to fix this by running npx nuxi cleanup

Same here MacOS, fresh install