how to check if npm is installed code example
Example 1: install npm mac
brew install node
Example 2: check if a npm package is installed
npm list [package-name] || npm list -g [package-name]
brew install node
npm list [package-name] || npm list -g [package-name]