npm, Yarn, and pnpm.
By default, the Vega Software Development Kit (SDK) works with npm. Therefore, this page only provides configuration instructions for Yarn and pnpm package managers.
Yarn
Step 1. InstallYarn, version 3.8.1 or later. For installation instructions, see Yarn installation documentation.
Step 2. To use npm-run-all with Yarn, use the NPM_EXECPATH to set the path to Yarn.
Step 3. Set this environment variable in your .bashrc or .zshrc file:
Yarn.
Yarn to install dependencies and build.
pnpm
Step 1. Installpnpm, version 9.x or later. For installation instructions, see pnpm installation documentation.
Step 2. Remove any existing pnpm-lock.yaml file.
npm-run-all with pnpm, use the NPM_EXECPATH to set the path to pnpm.
Step 4. Set this environment variable in your .bashrc or .zshrc file:
pnpm.
pnpm to install dependencies and build.
Enable React Native bundling with pnpm
To enable React Native bundling withpnpm, update your app’s metro.config.js file and set the unstable_enableSymlinks property like this:

