Class TaskRunNpmInstall

java.lang.Object
com.vaadin.flow.server.frontend.TaskRunNpmInstall
All Implemented Interfaces:
FallibleCommand

public class TaskRunNpmInstall extends Object implements FallibleCommand
Run npm install after dependencies have been updated.

For internal use only. May be renamed or removed in a future release.

Since:
2.0
  • Method Details

    • execute

      public void execute() throws ExecutionFailedException
      Description copied from interface: FallibleCommand
      Runs the given command.

      If execution fails then the command may throw an exception which may give a message and a cause of the failure.

      Specified by:
      execute in interface FallibleCommand
      Throws:
      ExecutionFailedException - if there is an execution error
    • verifyPackageLockAndClean

      protected void verifyPackageLockAndClean()
      Check the lockfile lockversion to see if it is compatible with the used npm version. If the lockfile is too old delete it.