Trying to install animate.css with npm, but keep getting errors

990 Views Asked by At

I am trying to install animate.css with npm. But it is showing me a lot of error. I am new to javascript and node, I am trying to build a resume website. Here is a picture of all the errors. enter image description here

2

There are 2 best solutions below

0
yanir midler On

After I installed animate.css in the way below

npm install animate.css --save

I simply had to import the CSS file like this from my node_modules:

@import "~animate.css/animate.css";

Cheers

0
Luis Lobo On

ror: "directory not empty". This means that files already exist in this folder. Just stop your terminal, delete the folder (which is in node_modules) and run again. If it doesn't work, restart your PC and try again.