src/Presets/FrontEndPresetTrait.php
protected function installNodePackage( $directory, OutputInterface $output, $package, $version = null, $dev = false ) {
		$package_manager = new Proxy();

		if ( $package_manager->installed( $directory, $package ) ) {
			throw new RuntimeException( 'Package is already installed.' );
		}

		$package_manager->install( $directory, $output, $package, $version, $dev );
	}
protected function installNodePackage( $directory, OutputInterface $output, $package, $version = null, $dev = false ) {
		$package_manager = new Proxy();

		if ( $package_manager->installed( $directory, $package ) ) {
			throw new RuntimeException( 'Package is already installed.' );
		}

		$package_manager->install( $directory, $output, $package, $version, $dev );
	}
protected function installNodePackage ( $ directory , OutputInterface $ output , $ package , $ version = null , $ dev = false ) { $ package_manager = new Proxy ( ) ; if ( $ package_manager -> installed ( $ directory , $ package ) ) { throw new RuntimeException ( 'Package is already installed.' ) ; } $ package_manager -> install ( $ directory , $ output , $ package , $ version , $ dev ) ; }
Install a node package.

@param  string          $directory
@param  OutputInterface $output
@param  string          $package
@param  string|null     $version
@param  boolean         $dev
@return void
Install a node package .