question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot start nuxt: Cannot find module 'nuxt'

See original GitHub issue

Environment

  • Operating System: Darwin
  • Node Version: v17.7.1
  • Nuxt Version: 3.0.0-27507520.e006c56
  • Package Manager: npm@8.5.2
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

npx nuxi init with nuxt3: "3.0.0-27507520.e006c56"

Describe the bug

since 3.0.0-27507520.e006c56: Error: Cannot start nuxt: Cannot find module 'nuxt'

  • Every commit before works as intended.
  • Every commit after throws the same error.

Additional context

No response

Logs

ERROR  Cannot start nuxt:  Cannot find module 'nuxt'
Require stack:
- /Users/weleo/nuxt-app/index.js

  Require stack:
  - index.js
  at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
  at Function.resolve (node:internal/modules/cjs/helpers:108:19)
  at Function._resolve [as resolve] (node_modules/jiti/dist/jiti.js:1:192841)
  at resolveModule (node_modules/@nuxt/kit/dist/index.mjs:236:29)
  at importModule (node_modules/@nuxt/kit/dist/index.mjs:259:24)
  at loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:656:43)
  at async load (node_modules/nuxi/dist/chunks/dev.mjs:6733:23)
  at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6777:5)
  at async _main (node_modules/nuxi/dist/cli.mjs:46:20)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

14reactions
pi0commented, Apr 20, 2022

Please follow the instructions here in order to update nuxt3 dependency. Sorry for the inconvenience during the RC release.

13reactions
danielroecommented, Apr 20, 2022

apologies for the inconvenience - things are happening in the background 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot start nuxt: Cannot find module 'nuxt' #3060 - GitHub
I think you must have an outdated version of nuxi installed locally. Your Nuxt version should be at least 3.
Read more >
Error: Cannot find module nuxt.js, why my app don't start?
I´ve got this error when try to run npm run dev after installed the dependencies and i cant find why ...
Read more >
nuxt-push-plugins - npm
When calling this.addPlugin inside a Nuxt module, Nuxt does in fact not add the plugin to the end of the list, but to...
Read more >
Setup - Nuxt TypeScript
Nuxt TypeScript Support mainly comes through a Nuxt module, @nuxt/typescript-build, and its types @nuxt/types. Here are the guidelines to install ...
Read more >
Cannot find module 'lib/axios'- nuxt 2.15.8 + vite integration error
And now you will get this error Cannot find module 'lib/axios' . This problem comes from vite version. Let's downgrade, then our error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found