Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in adding vuetify on a project

I have created a vue-cli project.

And I tried to add vuetify but I couldn't do it

I've run: npm install vuetify --save

A error came out on terminal:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.3 (node_modules/sane/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

When I try to import vuetify on main.js it says that can't find the module.

Does anyone know how to fix/install it?

like image 521
Junior Vilas Boas Avatar asked Dec 07 '25 06:12

Junior Vilas Boas


1 Answers

You could try using yarn, I find it sometimes performs better

install yarn npm i -g yarn

Then install dependencies (run in your package.json file folder) yarn

You can also do a clean install by first removing the nodes_modules folder, and then install without optional dependencies npm install --no-optional

like image 163
Daniel Avatar answered Dec 10 '25 10:12

Daniel