HoangYell
HoangYell

Reputation: 4671

Cannot find module '@nuxt/cli'

I keep getting

Cannot find module '@nuxt/cli'

Whenever run npx nuxt generate.

although npm i nuxt-cli is already installed

Upvotes: 1

Views: 3557

Answers (1)

AleDP
AleDP

Reputation: 536

For projects with VUE-CLI:

npm install -g @vue/cli

If you want to create a new project with NUXT you need:

npx create-nuxt-app your-project-name

Once you have your project ready. If you want to generate your web application into static files you can make use of:

npm run generate

I believe you maybe have a little mix-up between NUXT and VUE-CLI and their commands. Check the documentation of NUXT and VUE.JS

Upvotes: 1

Related Questions