install prettier npm v6.10.0 in react app code example Example: prettier npm npm install --save-dev pre-commit