JavaScriptAppResource.withNpm
Method
interface JavaScriptAppResource { // ... omitted for brevity withNpm( install?: boolean, installCommand?: string, installArgs?: string[]): JavaScriptAppResource;}Signature
method
withNpmbuilderConfigures the Node.js resource to use npm as the package manager and optionally installs packages before the application starts.
withNpm( install?: boolean, installCommand?: string, installArgs?: string[]): JavaScriptAppResourceParameters
installbooleanoptional= TrueinstallCommandstringoptionalinstallArgsstring[]optionalReturns
JavaScriptAppResourceDefined on
This method is defined on the following type: