Skip to content
Docs Try Aspire

withNpm

Function
📦 Aspire.Hosting.JavaScript v13.2.0-preview.1.26159.1
interface NodeAppResource {
// ... omitted for brevity
withNpm(
install?: boolean,
installCommand?: string,
installArgs?: string[]): JavaScriptAppResource;
}

Signature

method withNpm builder
Configures npm as the package manager
withNpm(
install?: boolean,
installCommand?: string,
installArgs?: string[]): JavaScriptAppResource
install boolean optional = True
installCommand string optional
installArgs string[] optional
JavaScriptAppResource

Applies to

This function is an extension method on the following types: