public function install(string $path = null, bool $isDevMode = true, int $timeout = null)
    {
        if ($isDevMode) {
            $arguments = ['install'];
        } else {
            $arguments = ['install', '--production'];
        }

        if ($timeout === null) {
            $timeout = self::DEFAULT_TIMEOUT;
        }

        $this->executeNpm($arguments, $path, $timeout);
    }
public function install(string $path = null, bool $isDevMode = true, int $timeout = null)
    {
        if ($isDevMode) {
            $arguments = ['install'];
        } else {
            $arguments = ['install', '--production'];
        }

        if ($timeout === null) {
            $timeout = self::DEFAULT_TIMEOUT;
        }

        $this->executeNpm($arguments, $path, $timeout);
    }
public function install ( string $ path = null , bool $ isDevMode = true , int $ timeout = null ) { if ( $ isDevMode ) { $ arguments = [ 'install' ] ; } else { $ arguments = [ 'install' , '--production' ] ; } if ( $ timeout === null ) { $ timeout = self :: DEFAULT_TIMEOUT ; } $ this -> executeNpm ( $ arguments , $ path , $ timeout ) ; }
Install 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 bool        $isDevMode True if dev dependencies should be included.
@param int|null    $timeout   The process timeout, in seconds.

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