#NEWLINE# def run( self ) : #NEWLINE# #INDENT# if ( not os . path . isfile ( ( self . repo_root + '/package.json' ) ) ) : #NEWLINE# #INDENT# print ( 'Creating package.json...' , file = sys . stderr ) #NEWLINE# self . create_package_json ( ) #NEWLINE# #UNINDENT# cmds = [ 'npm' , 'install' , '--progress-false' ] #NEWLINE# try : #NEWLINE# #INDENT# run ( cmds , cwd = self . repo_root ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# print ( ( 'Failed to run `npm install`: %s' % self ) , file = sys . stderr ) #NEWLINE# print ( 'npm is required to build a pyxley app' , file = sys . stderr ) #NEWLINE# raise