public function update(string $path = null, int $timeout = null)
    {
        if ($timeout === null) {
            $timeout = self::DEFAULT_TIMEOUT;
        }

        $this->executeNpm(['update'], $path, $timeout);
    }
public function update(string $path = null, int $timeout = null)
    {
        if ($timeout === null) {
            $timeout = self::DEFAULT_TIMEOUT;
        }

        $this->executeNpm(['update'], $path, $timeout);
    }
public function update ( string $ path = null , int $ timeout = null ) { if ( $ timeout === null ) { $ timeout = self :: DEFAULT_TIMEOUT ; } $ this -> executeNpm ( [ 'update' ] , $ path , $ timeout ) ; }
Update NPM dependencies for the project at the supplied path.

@param string|null $path    The path to the NPM project, or null to use the current working directory.
@param int         $timeout The process timeout, in seconds.

@throws NpmNotFoundException      If the npm executable cannot be located.
@throws NpmCommandFailedException If the operation fails.
Update NPM dependencies for the project at the supplied path .