NativeInstallerInterface
API reference › Foxy › Native › NativeInstallerInterface
Implemented by 1 type
Installs the frontend dependencies of a manifest into a flat directory without a Node.js package manager.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
install() abstract | Installs the dependencies declared by the manifest, reading or rewriting the lock file. | NativeInstallerInterface |
Method details
Section titled “Method details”install()
Section titled “install() ”abstract public function install(string $manifestPath, string $lockPath, string $installDirectory, bool $update): voidInstalls the dependencies declared by the manifest, reading or rewriting the lock file.
Parameters
| Parameter | Type | Description |
|---|---|---|
$manifestPath | string | Path of the root package.json. |
$lockPath | string | Path of the foxy.lock file. |
$installDirectory | string | Path of the directory to populate (node_modules by default). |
$update | bool | Whether to resolve again even when the lock file is fresh. |
Throws
Foxy\Exception\RuntimeException: if a requirement cannot be resolved, downloaded, or installed.