install eslint version code example Example 1: installing eslint globally npm install -g eslint Example 2: eslint install npm $ npm install eslint --save-dev