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
- Create new Nuxt3 project by typing
npx nuxi@latest init xxxx - Change directory to new project by typing
cd xxx - 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)
Wow… can’t believe I didn’t try that first. Confirming this solved the issue for me as well.
npm cache clean --force404 [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
cleaning npm cache … worked for me
I was able to fix this by running
npx nuxi cleanupSame here MacOS, fresh install