def check_npm_package!
      exit_status = Open3.capture2("node", "--eval", npm_package_require_snippet)[1]

      unless exit_status.success?
        raise engine::CompilerError, \
          %{No #{ engine.name } NPM package has been found in your system. } +
          %{Have you forgotten to "npm install --global #{ npm_package_name }"?}
      end
      nil
    end
def check_npm_package!
      exit_status = Open3.capture2("node", "--eval", npm_package_require_snippet)[1]

      unless exit_status.success?
        raise engine::CompilerError, \
          %{No #{ engine.name } NPM package has been found in your system. } +
          %{Have you forgotten to "npm install --global #{ npm_package_name }"?}
      end
      nil
    end
Checks if engine NPM package is installed.

 @raise {JadePug::CompilerError}
   If engine NPM package is not installed.
 @return [nil]