Unsupported package manager
Cause: Vega Studio displays an error or fails to build when trying to use package managers other than npm or yarn v2. Vega Studio only supportsnpm and yarn v2 CLI. Other package managers don’t work correctly with the build system.
Solution: Switch to a supported package manager:
- Use npm for standard package management
- Use yarn v2+ for advanced workspace features
Package manager not detected
Cause: Vega Studio can’t detect the package manager in your monorepo and defaults to npm incorrectly. For empty or clean monorepos, detection can be challenging. Vega Studio defaults tonpm, which might not apply to your setup.
Solution: Help Vega Studio identify your package manager:
- Install dependencies manually (
npm installfor npm andyarn installfor yarn). - Place an appropriate (even empty) lock file (package-lock.json or yarn.lock) in the monorepo root directory.
Build fails with “Turbo module tgz dependency not found or malformed” error
Cause: The build system can’t locate or process the .tgz file referenced in your package.json dependencies. Solution: Replace the file pointer totgz with the latest package version:
npm installation fails during monorepo setup
Cause: Missing npm installation, incorrect .npmrc configuration, or conflicting files in parent directories. Solution:-
Verify that
npmis installed: -
Verify
.npmrcis present and correct. -
Remove conflicting files or directories in parent folders or your HOME folder:
- package.json files
- node_modules directories
- npm artifacts
Yarn installation fails during monorepo setup
Cause: Incorrect yarn version, missing yarn installation, or conflicting configuration files. Solution:-
Verify that you have yarn v2+:
- Uninstall yarn 1 (if present):
-
Install Yarn using corepack (node versions 14+):
-
In package.json, specify the correct package manager:
-
Prepare yarn:
-
Create an empty
yarn.lockfile in the monorepo root. -
Remove conflicting files or directories in parent folders or your HOME folder:
- package.json, package-lock.json, and yarn.lock
- node_modules directories
- npm artifacts
Build fails when installing Yarn dependencies
Cause: Incorrect yarn repository configuration or missing authentication tokens in the .yarnrc.yml file. Solution:- Configure yarn repositories correctly (.yarnrc.yml file). For instructions, see Configure yarn workspaces.
-
Add the following configuration to
.yarnrc.ymlas needed:

