3

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 fsevents@1.2.3: 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 fsevents@1.2.3: 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?

Daniel
  • 34,125
  • 17
  • 102
  • 150
Junior Vilas Boas
  • 1,365
  • 3
  • 9
  • 11

1 Answers1

9

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

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
Daniel
  • 34,125
  • 17
  • 102
  • 150