MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / install

Function install

modules/material-parser/src/utils.ts:24–32  ·  view source on GitHub ↗
(args: { workDir: string; moduleDir: string; npmClient?: string })

Source from the content-addressed store, hash-verified

22}
23
24export async function install(args: { workDir: string; moduleDir: string; npmClient?: string }) {
25 if (await isNPMInstalled(args)) return;
26 const { workDir, npmClient = 'tnpm' } = args;
27 try {
28 await spawn(npmClient, ['i'], { stdio: 'inherit', cwd: workDir } as any);
29 } catch (e) {
30 // TODO
31 }
32}
33
34export async function installModule(
35 args: { workDir: string; moduleDir: string; npmClient?: string },

Callers 1

index.tsFile · 0.90

Calls 1

isNPMInstalledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…