MCPcopy Index your code
hub / github.com/angular/angular-cli / globalNpm

Function globalNpm

tests/e2e/utils/process.ts:414–422  ·  view source on GitHub ↗
(args: string[], env?: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

412}
413
414export function globalNpm(args: string[], env?: NodeJS.ProcessEnv) {
415 if (!process.env.LEGACY_CLI_RUNNER) {
416 throw new Error(
417 'The global npm cli should only be executed from the primary e2e runner process',
418 );
419 }
420
421 return _exec({ silent: true, env }, 'npm', args);
422}
423
424export function node(...args: string[]) {
425 return _exec({}, process.execPath, args);

Callers 2

100-global-cli.tsFile · 0.90

Calls 1

_execFunction · 0.85

Tested by

no test coverage detected