getPackages method
Future<bool>
getPackages({
- required String workingDirectory,
- CliStreamConsumer consumer = const CliStreamConsumer(),
- bool production = false,
- bool binLinks = true,
Run npm install
.
Returns true if the process finished without any errors.
Implementation
Future<bool> getPackages({
required String workingDirectory,
CliStreamConsumer consumer = const CliStreamConsumer(),
bool production = false,
bool binLinks = true,
}) {
return evaluateProcess(
[
"install",
if (production) "--production",
binLinks ? "--bin-links" : "--no-bin-links",
],
workingDirectory: workingDirectory,
consumer: consumer,
);
}