def updateNPMDependencies(): npm = NPM() try : npm.getCurrentNPMVersion(True) except Exception as e: print("Error: "+traceback.format_exc()) return #animation_loader = AnimationLoader(["[= ]", "[ = ]", "[ = ]", "[ = ]", "[ =]", "[ = ]", "[ = ]", "[ = ]"], 0.067, "Updating npm dependencies ") #interval_animation = RepeatedTimer(animation_loader.sec, animation_loader.animate) try : npm.update_all(False) except Exception as e: pass
def updateNPMDependencies(): npm = NPM() try : npm.getCurrentNPMVersion(True) except Exception as e: if node_variables.NODE_JS_OS == "win" : sublime.active_window().status_message("Can't use \"npm\"! To use features that requires \"npm\", you must install it! Download it from https://nodejs.org site") print("Error: "+traceback.format_exc()) return animation_loader = AnimationLoader(["[= ]", "[ = ]", "[ = ]", "[ = ]", "[ =]", "[ = ]", "[ = ]", "[ = ]"], 0.067, "Updating npm dependencies ") interval_animation = RepeatedTimer(animation_loader.sec, animation_loader.animate) try : npm.update_all(False) except Exception as e: pass animation_loader.on_complete() interval_animation.stop()
def updateNPMDependencies(): npm = NPM() try: npm.getCurrentNPMVersion(True) except Exception as e: if node_variables.NODE_JS_OS == "win": sublime.active_window().status_message( "Can't use \"npm\"! To use features that requires \"npm\", you must install it! Download it from https://nodejs.org site" ) print("Error: " + traceback.format_exc()) return animation_loader = AnimationLoader([ "[= ]", "[ = ]", "[ = ]", "[ = ]", "[ =]", "[ = ]", "[ = ]", "[ = ]" ], 0.067, "Updating npm dependencies ") interval_animation = RepeatedTimer(animation_loader.sec, animation_loader.animate) try: npm.update_all(False) except Exception as e: pass animation_loader.on_complete() interval_animation.stop()