how to check is an npm package have been installed using npm code example
Example: check if a npm package is installed
npm list [package-name] || npm list -g [package-name]
npm list [package-name] || npm list -g [package-name]