Use HTTP requests instead of the npm command to get the version.
npm
Use it in environments where the npm command is not available.