Package com.vaadin.flow.server.frontend
Class TaskRunNpmInstall
java.lang.Object
com.vaadin.flow.server.frontend.TaskRunNpmInstall
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionvoidexecute()Runs the given command.protected voidCheck the lockfile lockversion to see if it is compatible with the used npm version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.server.frontend.FallibleCommand
setGeneratedFileSupport
-
Method Details
-
execute
Description copied from interface:FallibleCommandRuns 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:
executein interfaceFallibleCommand- 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.
-