sajad torkamani
npm list <package>

This will also show any package that isn’t explicitly listed in your package.json but installed as a dependency of another package.

Example output for npm list ts-node:

└─┬ ts-node-dev@1.1.8
  └── ts-node@9.1.1