how to check node major minor version inside our local environment code example Example: npm get package.json version node -pe "require('./package.json')['version']"