Saman
Saman

Reputation: 601

Error: Module `@nuxtjs/vuetify` not found. (v2.0.0-beta.2)

Because of fibers error on cPanel/CentOS/Cloudlinux servers, I'm using v2.0.0-beta.2 of @nuxtjs/vuetify in my Nuxt app.

But npm returns error on build or dev running.

No problem with v1.11.2, but the alpha and beta versions have error.

✖ Nuxt Fatal Error
Error: Module `@nuxtjs/vuetify` not found. Please ensure `@nuxtjs/vuetify` is in `devDependencies` and
installed. HINT: During build step, for npm/yarn, `NODE_ENV=production` or `--production` should NOT be
used.

2020-06-04_163704

package.json

"devDependencies": {
    "@nuxtjs/vuetify": "^2.0.0-beta.2"
}

nuxt.config.js

buildModules: [
    '@nuxtjs/vuetify'
]

Upvotes: 0

Views: 4143

Answers (3)

Steve
Steve

Reputation: 69

I tried Fred solution but didn't work out for me.

However I run this command npm install @nuxtjs/vuetify -D to install the vuetify component and the problem solved.

Upvotes: 0

sharif_42
sharif_42

Reputation: 571

Go through the bellow commands

  1. Delete node_modules
  2. run npm i if you have previously npm installed on you machine otherwise run npm install then run npm i .
  3. run npm run build
  4. run npm run start

Upvotes: 0

Saman
Saman

Reputation: 601

I deleted the node_modules folder and re-runned the npm install and problem solved.

Upvotes: 1

Related Questions