npm eslint global install code example
Example 1: installing eslint globally
npm install -g eslint
Example 2: eslint npm install
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
npm install -g eslint
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init