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.
package.json
"devDependencies": {
"@nuxtjs/vuetify": "^2.0.0-beta.2"
}
nuxt.config.js
buildModules: [
'@nuxtjs/vuetify'
]
3
Answers
I deleted the
node_modules
folder and re-runned thenpm install
and problem solved.Go through the bellow commands
npm i
if you have previously npm installed on you machine otherwise runnpm install
then runnpm i
.npm run build
npm run start
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.