class_docstr: NPM builder.
  
  Builds the js and css using npm.
class_docstr_tok: ["NPM","builder",".","Builds","the","js","and","css","using","npm","."]
code: def has_npm(self):
      npm_name = self.get_npm_name()
      try:
          subprocess.check_call([npm_name, "--version"])
          return True
      except:  # pylint: disable=bare-except
          return False
  
imports: from distutils import log
  from distutils import spawn
  import os
  import platform
  import subprocess
  import sys
  from setuptools import Command
  from setuptools import find_packages
  from setuptools import setup
  from setuptools.command.build_py import build_py
  from setuptools.command.develop import develop
  from setuptools.command.egg_info import egg_info
  from setuptools.command.sdist import sdist
label_desc: Use image node_id 4 for calling the NPM obj's underlying member method code with example usage: obj.has_npm() and returns: True, False