MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / checkPNPM

Method checkPNPM

lib/tasks/npm-task.js:85–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 async checkPNPM() {
86 try {
87 let result = await this.pnpm(['--version']);
88 let version = result.stdout;
89
90 logger.info('pnpm --version: %s', version);
91
92 return { name: 'pnpm', version };
93 } catch (error) {
94 logger.error('pnpm --version failed: %s', error);
95
96 if (error.code === 'ENOENT') {
97 throw new SilentError(
98 'Ember CLI is now using pnpm, but was not able to find it.\n' +
99 'Please install pnpm using the instructions at https://pnpm.io/installation'
100 );
101 }
102
103 throw error;
104 }
105 }
106
107 async checkNpmVersion() {
108 try {

Callers 1

findPackageManagerMethod · 0.95

Calls 1

pnpmMethod · 0.95

Tested by

no test coverage detected