mirror of
https://github.com/animate-css/animate.css.git
synced 2024-09-29 22:41:31 +02:00
Remove sudo npm
from instructions (#952)
Running `npm` as root has a lot of disadvantages (ref: https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92). Modern versions of npm allow running tools from `node_modules/.bin` by calling `npx`.
This commit is contained in:
parent
59c59faa61
commit
d8f2204d3a
@ -178,10 +178,10 @@ Animate.css is powered by [gulp.js](http://gulpjs.com/), which means you can cre
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ cd path/to/animate.css/
|
$ cd path/to/animate.css/
|
||||||
$ sudo npm install
|
$ npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, run `gulp` to compile your custom builds. For example, if you want only some of the “attention seekers”, simply edit the `animate-config.json` file to select only the animations you want to use.
|
Next, run `npx gulp` to compile your custom builds. For example, if you want only some of the “attention seekers”, simply edit the `animate-config.json` file to select only the animations you want to use.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
"attention_seekers": {
|
"attention_seekers": {
|
||||||
|
Loading…
Reference in New Issue
Block a user