From d8f2204d3abe64779057e4929a5343c12b589bf8 Mon Sep 17 00:00:00 2001 From: Alex Gyoshev Date: Wed, 3 Jul 2019 17:24:33 +0300 Subject: [PATCH] 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`. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d8596c..c7fed4e 100644 --- a/README.md +++ b/README.md @@ -178,10 +178,10 @@ Animate.css is powered by [gulp.js](http://gulpjs.com/), which means you can cre ```sh $ 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 "attention_seekers": {