npm check what packages were installed after npm install code example
Example 1: check if a npm package is installed
npm list [package-name] || npm list -g [package-name]
Example 2: how to install npm packages
npm i <package>
npm list [package-name] || npm list -g [package-name]
npm i <package>