MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / installDependencies

Function installDependencies

utils/setup.js:46–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46function installDependencies() {
47 const packageManager = getPackageManager();
48
49 try {
50 execSync(`${packageManager} install`, { stdio: "inherit" });
51 } catch (error) {
52 if (packageManager === "npm") {
53 throw error;
54 }
55
56 console.warn(
57 `Failed to install dependencies with ${packageManager}. Falling back to npm.`,
58 );
59 execSync("npm install", { stdio: "inherit" });
60 }
61}
62
63installDependencies();
64try {

Callers 1

setup.jsFile · 0.85

Calls 1

getPackageManagerFunction · 0.85

Tested by

no test coverage detected