Home / Function/ install() — astro Function Reference

install() — astro Function Reference

Architecture documentation for the install() function in dependencies.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  96ccebd5_b806_99e1_935a_9774dfab1eed["install()"]
  ed06fbb8_fa50_eed4_1fe7_4e2bd1cca13a["dependencies.ts"]
  96ccebd5_b806_99e1_935a_9774dfab1eed -->|defined in| ed06fbb8_fa50_eed4_1fe7_4e2bd1cca13a
  cc689499_9606_7a8e_588b_53c80795c124["dependencies()"]
  cc689499_9606_7a8e_588b_53c80795c124 -->|calls| 96ccebd5_b806_99e1_935a_9774dfab1eed
  e67de588_a25b_7bad_d4e1_4c35821e73ed["ensureYarnLock()"]
  96ccebd5_b806_99e1_935a_9774dfab1eed -->|calls| e67de588_a25b_7bad_d4e1_4c35821e73ed
  style 96ccebd5_b806_99e1_935a_9774dfab1eed fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/create-astro/src/actions/dependencies.ts lines 107–110

async function install({ packageManager, cwd }: { packageManager: string; cwd: string }) {
	if (packageManager === 'yarn') await ensureYarnLock({ cwd });
	return shell(packageManager, ['install'], { cwd, timeout: 90_000, stdio: 'ignore' });
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does install() do?
install() is a function in the astro codebase, defined in packages/create-astro/src/actions/dependencies.ts.
Where is install() defined?
install() is defined in packages/create-astro/src/actions/dependencies.ts at line 107.
What does install() call?
install() calls 1 function(s): ensureYarnLock.
What calls install()?
install() is called by 1 function(s): dependencies.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free