MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / install

Method install

packages/cli/lib/base-generator.js:385–395  ·  view source on GitHub ↗

* Run `[pkgManager] install` in the project

()

Source from the content-addressed store, hash-verified

383 * Run `[pkgManager] install` in the project
384 */
385 install() {
386 if (this.shouldExit()) return false;
387 const opts = {
388 npm: this.options.npmInstall,
389 yarn: this.options.yarnInstall,
390 };
391 const spawnOpts = Object.assign({}, this.options.spawn, {
392 cwd: this.destinationRoot(),
393 });
394 this.pkgManagerInstall(null, opts, spawnOpts);
395 }
396
397 /**
398 * Wrapper for mem-fs-editor.copyTpl() to ensure consistent options

Callers 1

Calls 2

shouldExitMethod · 0.95
pkgManagerInstallMethod · 0.95

Tested by

no test coverage detected