check local and global version nodejs code example
Example: npm check package version
local packages:
~$ npm list
globally installed packages:
~$ npm list -g
specific package:
~$ npm list
local packages:
~$ npm list
globally installed packages:
~$ npm list -g
specific package:
~$ npm list