npm Functions
npmInstall
Install NPM in the build environment
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.
Location:
bin/build/tools/npm.sh
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_VERSIONnpm Version – String. Version of npm to install using nativenpmbinary. - Read-only. Default version. If not specified, useslatest.-
BUILD_NPM_VERSION- String. Default tolatest. Used to installnpm -i npm@$BUILD_NPM_VERSIONon install.