how to check whether a package is properly installed by npm code example Example: check if a npm package is installed npm list [package-name] || npm list -g [package-name]