npm Functions
Usage
npmInstall [ --version versionCode ]
Install NPM in the build environment
If this fails it will output the installation log.
When this tool succeeds the npm binary is available in the local operating system.
Arguments
--version versionCode- String. Optional. Install this version of python.
Return codes
1- If installation of npm fails0- If npm is already installed or installed without error
Environment
- BUILD_NPM_VERSION - String. Version of npm to install using native
npmbinary. - Read-only. Default version. If not specified, uses
latest. -
BUILD_NPM_VERSION- String. Default tolatest. Used to installnpm -i npm@$BUILD_NPM_VERSIONon install.